function getVideoId(no)
{
	var url = window.location.href+'?video='+no;
	var who = "WDMP";
	var ver = navigator.appName
	var num = parseInt(navigator.appVersion)
	if ((ver == "Microsoft Internet Explorer")&&(num >= 4)) 
	{
	   window.external.AddFavorite(url,who);
	}
	else
	{
		if(window.opera)
		{  
			var elem = document.createElement('a');
			elem.setAttribute('href','#');
			elem.setAttribute('onclick','javascript:void(0)');
			elem.setAttribute('title','who');
			elem.setAttribute('rel','sidebar');
			elem.click();			
		}
		else
		{
			window.Bookmark(who, url,'');
		}
	   
	} 
}
function chkbrowser()
{
	var agt=navigator.userAgent.toLowerCase();
	if (agt.indexOf("opera") != -1)
	{
		res="opera"
		return res;
	}
	if (agt.indexOf("firefox") != -1)
	{
		res="firefox"
		return res;
	}
	if (agt.indexOf("safari") != -1)
	{
		res="safari"
		return res;
	}
}
function changevideo()
{
	var url =window.location.href;
	var id=url.split("=");
	if(!id[1])
	{
		id[1]=0;
	}
	// alert(id[1]);
	return id[1];
}
function thisMovie(movieName)
{
    if (navigator.appName.indexOf("Microsoft") != -1)
	{
        return window[movieName]
    }
    else
	{
        return document[movieName]
    }
}