// JavaScript Document
function dot(div,src,get,idd){
	var elem = document.getElementById(div);
	if(elem && idd != get) elem.innerHTML = src;
}
function mstyle(get){
	var elem= document.getElementById(get);
	if(elem) elem.className = 'current';
}
function findHeight(div) {
   getScrollHeight = 0;
   getScrollHeight=  document.body.clientHeight;
   document.getElementById(div).innerHTML = getScrollHeight+"px";
}
function MM_swapImage(img_name,img_src) {
	document[img_name].src = img_src;
}

function bookmarksite(title,url){
	if (window.sidebar) // firefox
		window.sidebar.addPanel(title, url, "");
	else if(window.opera && window.print){ // opera
		var elem = document.createElement('a');
		elem.setAttribute('href',url);
		elem.setAttribute('title',title);
		elem.setAttribute('rel','sidebar');
		elem.click();
	} 
	else if(document.all)// ie
	window.external.AddFavorite(url, title);
}

var j = 0;
function showhide(value){
	if(document.getElementById(value).style.display == "none"){
		document.getElementById(value).style.display = "";
	}else document.getElementById(value).style.display = "none";
}
function popUps(url,w,h){
		curFEAT = 'toolbar=no,location=0,directories=yes,status=yes,titlebar=yes,menubar=no,scrollbars=yes,resizable=no,width=' + w + ',height=' + h + ',left=300,top=50';
		window.open(url,'directory',curFEAT);	
}

function startVideo(videoURL){
	video = document.getElementById('videoDiv');
	video.innerHTML = '<object width="280" height="200">'
		+'<param name="movie" value="'+videoURL+'"></param>'
		+'<param name="allowFullScreen" value="true"></param>'
		+'<param name="allowscriptaccess" value="always"></param>'
		+'<embed src="'+videoURL+'" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="280" height="200"></embed>'
		+'</object>';
}

