<!--
function CreateBookmarkLink(url,title) {
	if (window.sidebar) {
		// Mozilla Firefox Bookmark
		window.sidebar.addPanel(title, url,"");
	} else if( window.external ) {
		// IE Favorite
		window.external.AddFavorite( url, title);
	}
	else if(window.opera && window.print) {
		// Opera Hotlist
		return true; 
	}
}
function addToFavorites(urlAddress, pageName) { 
		if (window.external) { 
			window.external.AddFavorite(urlAddress, pageName);
		} else { 
			alert("Sorry! Your browser doesn't support this function."); 
		} 
} 


/* Function for showing and hiding elements that use 'display:none' to hide */
function toggleDisplay(targetId)
{
    if (document.getElementById) {
        target = document.getElementById(targetId);
   		target.style.display = "";
    }
}
function toggleHidden(targetId)
{
    if (document.getElementById) {
        target = document.getElementById(targetId);
   		target.style.display = "none";
    }
}

// toggle visibility 
function toggleVisibility(targetId) {
    if (document.getElementById) {
        target = document.getElementById(targetId);
    	if (target.style.visibility == "hidden"){
    		target.style.visibility = "visible";
    	} else {
    		target.style.visibility = "hidden";
    	}
    }
}

function toCountPlayVideo(targetId,d_url){	
	//
    if (document.getElementById) {
        imgTarget = document.getElementById(targetId);
   		imgTarget.src=d_url;
    }	
}
function toPlayVideo2(targetId,d_url,d_width,d_height){	
	//alert(" width : "+d_width+"    Height:  "+d_height);
	var d_position="mediaPlayer";		
	//var d_url="mms://play.ccdntech.com/vod14/2007/IWS/071003_1823.wmv ";
	//var d_width=320;
	//var d_height=240;  //64
	var uiMode="full";
	var autostart="1";
	var linkurl="";
	//	loadMediaPlayer2(position,url,width,height,linkurl,uiMode,autoStart)
	var objStr=loadMediaPlayer2(d_position,d_url,d_width,d_height,linkurl,uiMode,autostart);
	
	
    if (document.getElementById) {
	
        target = document.getElementById(targetId);
   		target.innerHTML=objStr;
	
    }	
	

}

var newwindow;
function popupWindows(url,windowName,width,height)
{
	newwindow=window.open(url,windowName,"width="+width+",height="+height+",top=800");
	//newwindow=window.open(url,windowName,"width=320,height=240");
	if (window.focus) {newwindow.focus()}
}

//-->

