/* detect browser *///////////////////////////////////////////
var ns4 = (document.layers);
var ie4 = (document.all && !document.getElementById);
var ie5 = (document.all && document.getElementById);
var ns6 = (!document.all && document.getElementById);
function detectBrowser(x){
	detectedObj="";
	if(ns6!=false){ // if NS or FIREFOX
    	detectedObj = document.getElementById(x);
    }else{
        detectedObj = eval("document.all."+x);
    }
	return detectedObj;
}
function MoveTopBanners(Link,W,H)
	{
	document.FrmTopBanners.bt_link1.value=Link
	document.FrmTopBanners.width1.value=W
	document.FrmTopBanners.height1.value=H
	document.FrmTopBanners.action="OldworldPage.asp"	
	document.FrmTopBanners.submit();
	}	
function GoToCatMovie(x,IDsite, tracking){
	location.href="http://www.ratuv.co.il/MovieListdebit.asp?IDsite="+IDsite+"&IDcodeCatMovie="+x+"&Tracking="+tracking+"";
}	
function GoToCat(x,namecat){
	//alert (x);
	location.href="http://www.ratuv.co.il/catPage.asp?catid="+x+"&namecat="+namecat+"";
}
function openWindow(urls,vars) {
			url1=urls + vars;
			w='404';
			h='450';
			name1= 'page';
			xPos = (screen.width - w)/2;
			yPos = (screen.height - h)/2;
			config = 'top=' + yPos + ',left=' + xPos + ',screenY=' + yPos + ',screenX=' + xPos + ',width=' + w + ',height=' + h;
			//alert(url1+"  "+name1+"  "+config);
			newWindow = window.open(url1,name1,config);
			}
function MoveRightBanners(Code,bt_code_pay,width,height,bt_link,bt_Iframe){
	// banners at the right/left
	if(bt_Iframe=="2")
			parent.location.href='http://www.ratuv.co.il/MovieListdebit.asp';	
	else
		{		
			if(bt_Iframe=="0"){
				window.open(bt_link)
			}
			else{
			document.FrmRightBanners.width.value=width;
			document.FrmRightBanners.height.value=height;
			document.FrmRightBanners.bt_link.value=bt_link;
	
			document.FrmRightBanners.bt_code_right_banner.value=Code
			document.FrmRightBanners.bt_code_pay_right_banner.value=bt_code_pay
			document.FrmRightBanners.action="worldPage.asp"	
			document.FrmRightBanners.submit();
			}
		}
	}
//MoveHpBanners('36','1*0*0','800','600','http://www.jew-sex.com/MovieList.asp','0')
function MoveHpBanners(Code,bt_code_pay,width,height,bt_link,bt_Iframe)
	{// banner 5 +6
	if(bt_Iframe=="2"){
		location.href='http://www.ratuv.co.il/MovieListdebit.asp';	
	}else if(bt_Iframe=="0"){
		window.open(bt_link, "new");	
	}else
		{		
		document.FrmHpBanners.width.value=width;
		document.FrmHpBanners.height.value=height;
		document.FrmHpBanners.bt_link.value=bt_link;
	
		document.FrmHpBanners.bt_code_hp_banner.value=Code
		document.FrmHpBanners.bt_code_pay_hp_banner.value=bt_code_pay
		document.FrmHpBanners.action="worldPage.asp"	
		document.FrmHpBanners.submit();
		}
	}
function MoveHpBannersNEW(Code,bt_code_pay,width,height,bt_link,bt_Iframe)
	{ // banner 9
	if(bt_Iframe=="2")
			location.href='http://www.ratuv.co.il/MovieListdebit.asp'
	else
		{	
		document.FrmHpBannersNEW.width.value=width;
		document.FrmHpBannersNEW.height.value=height;
		document.FrmHpBannersNEW.bt_link.value=bt_link;
		
		document.FrmHpBannersNEW.bt_code_hpnew_banner.value=Code
		document.FrmHpBannersNEW.bt_code_pay_hpnew_banner.value=bt_code_pay
		document.FrmHpBannersNEW.action="worldPage.asp"	
		document.FrmHpBannersNEW.submit();
		}
	}	
	
function MoveTopBannersNewFunc(Code,bt_code_pay,width,height,bt_link,bt_Iframe)
	{
	if(bt_Iframe=="2")
			location.href='http://www.ratuv.co.il/MovieListdebit.asp';
	else
		{
			if(bt_Iframe=="0"){
				window.open(bt_link)
			}
			else{
				document.FrmTopBanners.width.value=width;
				document.FrmTopBanners.height.value=height;
				document.FrmTopBanners.bt_link.value=bt_link;
	
				document.FrmTopBanners.bt_code_top_banner.value=Code
				document.FrmTopBanners.bt_code_pay_top_banner.value=bt_code_pay
				document.FrmTopBanners.action="worldPage.asp"	
				document.FrmTopBanners.submit();
			}
		}
	}	
function MoveBanners(Code,bt_code_pay){
	document.FrmTopBanners.bt_code_top_banner.value=Code
	document.FrmTopBanners.bt_code_pay_top_banner.value=bt_code_pay
	//alert(document.FrmTopBanners.bt_code_pay_top_banner.value);
	//alert(document.FrmTopBanners.bt_code_top_banner.value);
	document.FrmTopBanners.action="payment.asp"	
	document.FrmTopBanners.submit();
	}	

	
/* for the movie FLASH  */
	var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
	// Handle all the FSCommand messages in a Flash movie.
	function CallMovie_DoFSCommand(command, args) {
		
		var CallMovieObj = isInternetExplorer ? document.all.CallMovie : document.CallMovie;
		
		if (command=="1"){
			if ((navigator.userAgent.indexOf("IE") > -1) && (navigator.platform == "Win32")) { 
				document.all.MediaPlayer.autoStart = true; 
				document.all.MediaPlayer.Filename = args;
			} else { 
				document.MediaPlayer.SetFileName(args); 
			}
		}
	}
	// Hook for Internet Explorer.
	if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
		document.write('<script language=\"VBScript\"\>\n');
		document.write('On Error Resume Next\n');
		document.write('Sub CallMovie_FSCommand(ByVal command, ByVal args)\n');
		document.write('	Call CallMovie_DoFSCommand(command, args)\n');
		document.write('End Sub\n');
		document.write('</script\>\n');
	}
	
	function findSize(x){
		obj=detectBrowser(x);
		var W=obj.offsetWidth;
		var H=obj.offsetHeight;
		var Wvar=W-100;
		var Hvar=H-100;
		if(W>580 || H>580){
			if(Wvar>Hvar){ // landscape pic
				obj.style.width='580px';
			}else{ // portrait pic
				obj.style.height='580px';
			}
		}
	}
	
	
function over_pic(idx){
	document.getElementById('strip_pic_'+idx).className='picture_div_hover';
}
function out_pic(idx){
	document.getElementById('strip_pic_'+idx).className='picture_div';
}
	
