/*'**********************************************************************
'   *  File Name         : JavaScriptFunc.js
'   *  Module            : Site English Hebrew Java script functions All
'   *  Purpose           : Functions that can be ib java script the regular funcs
'   *  Short Description : 
'   *  Author            : Sagi ba-on
'   *  Date of Creation  : 16/05/01
'   *  Date of Update    : 
'************************************************************************/
/* This function is for show the Product in popup window */
 function ShowProduct(url)
	{
	   var newWin ;
	   
	  if(window.screen.availWidth=='1024')
		 newWin = window.open(url,"prod","width=520,height=400,top=213,left=285,scrollbars=no, menubar=no,resizable=no,copyhistory=no,");
		else
         newWin = window.open(url,"prod","width=520,height=400,top=118,left=82,scrollbars=no, menubar=no,resizable=no,copyhistory=no,");
	}


//function for openning Sex Ad Photo window-Hebrew
function open_popup_window(url, windowname, WI, HI)
	{ 
	   var newWin ;

	  if(window.screen.availWidth=='1024')
	   newWin = window.open(url, windowname, "width=" + WI + ",height=" + HI + ",status=no,scrollbars=no,top=213,left=285,menubar=no,resizable=no,toolbar=no,location=no");
	  else
	   newWin = window.open(url, windowname, "width=" + WI + ",height=" + HI + ",status=no,scrollbars=no,top=118,left=82,menubar=no,resizable=no,toolbar=no,location=no");
	}
	
function open_data_window(url, windowname, WI, HI)
	{ 
	   var newWin ;

	  if(window.screen.availWidth=='1024')
	   newWin = window.open(url, windowname, "width=" + WI + ",height=" + HI + ",status=yes,scrollbars=yes,top=213,left=0,menubar=yes,resizable=yes,toolbar=yes,location=yes");
	  else
	   newWin = window.open(url, windowname, "width=" + WI + ",height=" + HI + ",status=yes,scrollbars=yes,top=118,left=0,menubar=yes,resizable=yes,toolbar=yes,location=yes");
	}
			
	
			
/* Function that Close window any window */
function CloseWin()
	{ 
	  window.top.close();
	}
	
// Function for All kind of SWF just Send the parameters down ...
// Made by Sagi for handle with Flash
// Function for All kind of SWF just Send the parameters down ...
// Made By sagi bar-on 2001
function OBJECTFUNC(MovieName,Height,Width)
{ 
  var Temp;
  
Temp="<OBJECT codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,29,0 ";
Temp+="classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 width='" + Width + "' height='" + Height + "'>";
Temp+="<PARAM NAME='_cx' VALUE='5292'> <PARAM NAME='_cy' VALUE='1058'>";
Temp+="<PARAM NAME='Movie' VALUE='" + MovieName +"'> <PARAM NAME='Src' VALUE='" + MovieName +"'>";
Temp+="<PARAM NAME='WMode' VALUE='Window'> <PARAM NAME='Play' VALUE='-1'>";
Temp+="<PARAM NAME='Loop' VALUE='-1'> <PARAM NAME='Quality' VALUE='High'>";
Temp+=" <PARAM NAME='SAlign' VALUE=''> <PARAM NAME='Menu' VALUE='0'> <PARAM NAME='Base' VALUE=''>";
Temp+="<PARAM NAME='Scale' VALUE='ShowAll'>	<PARAM NAME='DeviceFont' VALUE='0'>";
Temp+="<PARAM NAME='EmbedMovie' VALUE='0'> <PARAM NAME='BGColor' VALUE='black'>";
Temp+="<PARAM NAME='SWRemote' VALUE=''> <PARAM NAME='Stacking' VALUE='below'>";
Temp+="<embed src='" + MovieName ;
Temp+="' quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'";
Temp+=" menu=false type='application/x-shockwave-flash' width='" + Width + "' height='" + Height + "'>";
Temp+=" </embed> </OBJECT> " ;

document.write (Temp) ;
} 	

//function for openning banner window
function open_banner_window(url, windowname)
{
  var newWin ;
  newWin = window.open(url,windowname);
}


/* Those tow function button are for the 'NavigationLog.inc '
   file it's make the Dhtml for 'video, DVD' hebrew and english togeter
*/
//function for showing the Movie/DVD Layer in the navigation-Hebrew
function ShowMovie(t,l)
	{ 
	if (navigator.appName=="Netscape")
		{
		document.movie.visibility="show"
		document.movie.top=t		
		document.movie.left=window.innerWidth/2+l
		}
	else
		{ 
		document.all.movie.style.visibility="visible"
		movie.style.top=t
		movie.style.left=document.body.offsetWidth/2+l
		}	
	}
//function for hiding the Movie/DVD Layer in the navigation	
function HideMovie()
	{
	if (navigator.appName=="Netscape")
		{
		document.movie.visibility="hide"
		}
	else
		{
		document.all.movie.style.visibility="hidden"
		}	
	}	
/*  End function's of the DHTML */	

/*
// This function is for shown the messages down the bar.
function MM_displayStatusMsg(msgStr) 
{ 
  status=msgStr;
  document.MM_returnValue = true;
}
*/

// Response Redirect to the same page.
function SetContent(location) 
{ 
  if(!location)
	self.location.href = self.location.href;
  else	
	self.location.href = location;
}
// Response Redirect to the same page.
function SetOrderContent(location) 
{ 
  if(!location)
	self.location.href = self.location.href;
  else	
	top.location.href = location;
}

