var sirina=1079;
var visina=780;
var minSirina=800;
var minVisina=600;

function alertSize() {
return;
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  //window.alert( 'Width = ' + myWidth );
  //window.alert( 'Height = ' + myHeight );
    	
  if (myHeight<=minVisina) myHeight=minVisina;
  if (myHeight>=visina) myHeight=visina;
  
  myWidth=Math.round((sirina/visina)*myHeight);
  
  //alert(myWidth+';'+myHeight);
  
  if(document.all && !document.getElementById) 
  { 
    	document.all['flashcontent'].style.pixelHeight = myHeight;         	
    	document.all['flashcontent'].style.pixelWidth = myWidth;
    	
    	document.all['content'].style.pixelHeight = myHeight;
    	document.all['content'].style.pixelWidth = myWidth;
    	
    	document.all['content'].style.top =-Math.round(myHeight/2);
         document.all['content'].style.marginLeft = -Math.round(myWidth/2);
	}
	else
	{ 
        document.getElementById('flashcontent').style.height = myHeight;    
        document.getElementById('flashcontent').style.width = myWidth;
        
        document.getElementById('content').style.height = myHeight;
        document.getElementById('content').style.width = myWidth;
        
         document.getElementById('content').style.top =-Math.round(myHeight/2);
         document.getElementById('content').style.marginLeft = -Math.round(myWidth/2);
    } 
}



/////////////////////////////////////////////////////////////////////////////



								//alert(document.location);	
								//alert(BrowserDetect.browser);	
								function getFlashMovie(movieName) 
								{
  									//var isIE = navigator.appName.indexOf("Microsoft") != -1;
  									//return (isIE) ? window[movieName] : document[movieName];
  									if (BrowserDetect.browser=="Opera")
									  return window[movieName];  
									 else									
  									return swfobject.getObjectById("flashcontent");
 								}
 								


 								
 								old_url=location.hash;
 								//alert(location.hash);
 								
 								function proveriUrl()
 								{ 													 					
									if (getFlashMovie("flashcontent"))
									{										
										//document.title=document.location;
										//if (getFlashMovie("flashcontent").runasUcitajSadrzaj)
										{
													
											var strippedUrl = document.location.toString().split("#");
																
											if (strippedUrl.length==2)	
											{
												
												url=strippedUrl[1];
												delovi=url.split("/");
												//alert(delovi.length)
												if (delovi.length==4)
												{
													jezik=delovi[1];
													meni=delovi[2];
													xml=delovi[3];
													//document.title=xml;
													//if (oldjez!=jezik || oldmeni!=meni || oldxml!=xml)													
													if (old_url!=location.hash)
													{	
						
														oldjez=jezik;
														oldmeni=meni;
														oldxml=xml;
														old_url=location.hash
														jsPromeniLink(jezik,meni,xml)
														//alert(1111111)
														getFlashMovie("flashcontent").runasUcitajSadrzaj(jezik,meni,xml);
														//window.setTimeout('proveriUrl()',100);
														//document.title='poslato'
														//alert('222')
													}																																							
												}												
											}
 											
 										}
 										//else document.title='nema' 										
									}
									// #AHOY: else document.title= 'סוויס רליף ספריי ג\'ל | להקלה מקומית בכאבים ודלקות'; //'Swiss Relief Spray Gel';
									//window.setTimeout('proveriUrl()',100);   									
								}
 								var flashvars={};								
 								var oldjez,oldmeni,oldxml
								var strippedUrl = document.location.toString().split("#");
																
								if (strippedUrl.length==2)	
								{
									url=strippedUrl[1];
									delovi=url.split("/");
									//alert(delovi.length)
									if (delovi.length==4)
									{
										jezik=delovi[1];
										meni=delovi[2];
										xml=delovi[3];
										
										if (oldjez!=jezik || oldmeni!=meni || oldxml!=xml)
										{										
											oldjez=jezik;
											oldmeni=meni;
											oldxml=xml;
											
											flashvars.imemeni=meni;
											flashvars.imexml=xml;
											flashvars.skracenicajezik=jezik;
											
											jsPromeniLink(jezik,meni,xml)
										}
										
									}
									//alert(strippedUrl[1]);
								}
								else
								{
									var strippedUrl = document.location.toString().split("/");
																
									if (strippedUrl.length>3)	
									{
											len=strippedUrl.length;
											jezik='heb';//strippedUrl[len-3];
											meni=strippedUrl[len-2];
											xml=strippedUrl[len-1];
											
											if (oldjez!=jezik || oldmeni!=meni || oldxml!=xml)
											{										
												oldjez=jezik;
												oldmeni=meni;
												oldxml=xml;
												
												flashvars.imemeni=meni;
												flashvars.imexml=xml;
												flashvars.skracenicajezik=jezik;
											}
									}		
										
								}
								//alert(flashvars.imexml)
								// #AHOY => flashvars.hostname="http://<?php echo $_SERVER['SERVER_NAME']; ?>";
								swfobject.embedSWF("indexHeb.swf", "flashcontent", sirina, visina, "9", "expressinstall.swf",flashvars)
								//var obj = swfobject.getObjectById("flashcontent");
								//alert(obj)
				/*
				if (obj && typeof obj.SetVariable != "undefined") {
					obj.SetVariable("JStoASviaSetVariable", document.getElementById("send").value);
				}*/

								window.setInterval('proveriUrl()',100);														   								

