IsLeftOzenBanner = 0;

function createplayer(theFile,go,ch_ID,div_name)
{	
		var so = new SWFObject("http://storage.tipo.co.il/images/portal/2006/flvplayer_scops.swf", "scopsPlayerObj", "300", "250", "8", "#ffffff");
		 so.addParam("quality", "high");
		 so.addParam("menu", "false");
		 so.addParam("wmode", "window");
		 so.addParam("allowfullscreen", "true");
		 so.addVariable("flv_channel",ch_ID);
		 so.addVariable("image","http://www.tipo.co.il/media/carmit/images/bk_video.jpg");
		 so.addVariable("file2", theFile);
		 so.addVariable("sid", "1");
		 so.addVariable("mid", "213");	
		 so.addVariable("isCount", "1");
		 if (go)
		{ 	
			so.addVariable('autostart', 'true');			
		}
		so.addVariable('volume',80);
		so.useExpressInstall('/images/expressinstall.swf'); 
		 so.write(div_name);				
}

function initIndex(linkName,curpage,divID)
{
	CreateFlashControl('hp_top_lenny', '210', '320', 'images/hp_top_lenny.swf', 'transparent', 'False');
	CreateFlashControl('stars', '290', '210', 'images/stars.swf', 'transparent', 'False');
	CreateFlashControl('hp_logo', '290', '210', 'images/hp_logo.swf', 'transparent', 'False');
	CreateFlashControl('hp_middle_lenny', '380', '385', 'images/hp_middle_lenny.swf', 'transparent', 'False');
	CreateFlashControl('hp_bottom_lenny', '406', '416', 'images/hp_bottom_lenny.swf', 'transparent', 'False');
	createplayer(linkName,1,curpage,divID);
}
function initGames()
{
CreateFlashControl('hp_logo', '290', '210', 'images/hp_logo.swf', 'transparent', 'False');
	CreateFlashControl('games_lenny', '320', '370', 'images/games_lenny.swf', 'transparent', 'False');
	CreateFlashControl('games_potion', '180', '315', 'images/games_potion.swf', 'transparent', 'False');
	CreateFlashControl('products', '415', '150', 'images/products.swf', 'transparent', 'False');
}


function initPlayGame()
{
		CreateFlashControl('hp_logo', '290', '210', 'images/hp_logo.swf', 'transparent', 'False');
		CreateFlashControl('lenneyBottom', '405', '450', 'images/playGame_lenneybottom.swf', 'transparent', 'False');
		CreateFlashControl('lenneyTop', '350', '339', 'images/playGame_lennytop.swf', 'transparent', 'False');
		CreateFlashControl('products', '415', '150', 'images/products.swf', 'transparent', 'False');
}

function initDownloads()
{
		CreateFlashControl('hp_logo', '290', '210', 'images/hp_logo.swf', 'transparent', 'False');
		CreateFlashControl('stars', '290', '210', 'images/stars.swf', 'transparent', 'False');
		CreateFlashControl('dl_potion', '200', '350', 'images/dl_potion.swf', 'transparent', 'False');
		CreateFlashControl('dl_lenny', '360', '376', 'images/dl_lenny.swf', 'transparent', 'False');
		CreateFlashControl('products', '415', '150', 'images/products.swf', 'transparent', 'False');
}
function initCompetion()
{
		CreateFlashControl('hp_logo', '290', '210', 'images/hp_logo.swf', 'transparent', 'False');
		CreateFlashControl('stars1', '290', '210', 'images/stars.swf', 'transparent', 'False');
		//CreateFlashControl('stars2', '290', '210', 'images/stars.swf', 'transparent', 'False');
		CreateFlashControl('products', '415', '150', 'images/products.swf', 'transparent', 'False');
}

 function goToNewPage(thePage)
{
	var currentPage;
	currentPage=thePage.options[pageSelector.selectedIndex].value;
   	self.location.href = "?page="+currentPage;	
}

function prev_page(thisPage)
{
	
	var prev_page;
	prev_page=thisPage-1;
	self.location.href = "?page="+prev_page;	
} 
function next_page(thisPage)
{
	var next_page;
	next_page=thisPage+1;
	self.location.href = "?page="+next_page;	
} 