
//var sFavDomain = "http://www.supergol.co.il/";
//var sFavName = "Supergol"

//function calcIframeHeight(iframeName)
//{
//	//find the height of the internal page
//	var the_frm = document.getElementById(iframeName);
//	if(the_frm != null)
//	{
//		var the_height=
//			the_frm.contentWindow.document.body.scrollHeight;
//	
//		//change the height of the iframe
//		the_frm.height = the_height;
//	}	
//}
//function goToMenuIndex(Index,Action)
//{
//	//alert(Index);
//	var sUrl = "";
//	switch(Index)
//	{
//		case 0: window.navigate("Default.aspx"); break;
//		case 1: sUrl = "sgWebUser.aspx"; break;
//		case 2: sUrl = "sgSurveyList.aspx"; break;
//		case 3: sUrl = "sgAbout.aspx?ParentID=1&TypeID=6"; break;
//		case 4: sUrl = "sgAbout.aspx?ParentID=1&TypeID=4"; break;
//		case 5: sUrl = "sgContact.aspx"; break;
//		case 6: sUrl = "sgAbout.aspx?ParentID=1&TypeID=1"; break;
//		case 7: sUrl = "sgCategory.aspx?TypeID=30"; break;
//		case 8: sUrl = "sgCategory.aspx?TypeID=20"; break;
//		case 9: sUrl = "sgCategory.aspx?TypeID=10"; break;
//		case 10: sUrl = "sgSplit.aspx"; break;
//		case 11: sUrl = "sgCategory.aspx?TypeID=2"; break;
//		case 12: sUrl = "sgCategory.aspx?TypeID=3"; break;
//		case 13: sUrl = "sgSchoolBall.aspx"; break;
//		case 15: sUrl = "sgMapList.aspx"; break;
//		case 20: sUrl = "sgNewsList.aspx"; break;
//		case 21: sUrl = "sgOpenEmail.aspx"; break;
//	}
//	if(sUrl != ""){
//		if(Action != null){
//			switch(Action)
//			{
//				case "Contact":
//					var sWidth = "750";
//					var sHeight = "370";
//					var oWin = window.open(sUrl,"window","Width="+sWidth+"px,Height="+sHeight+"px");
//					oWin.focus();
//				break;
//			}
//		}else{
//			var sFrmName = "MainFrame";
//			var oFrm = document.getElementById(sFrmName); 
//			if(oFrm != null){
//				oFrm.src = sUrl;
//				//__doPostBack("LoadPage",sUrl);
//			}else{
//				oFrm = parent.document.getElementById(sFrmName); 
//				if(oFrm != null)
//					oFrm.src = sUrl;
//					//parent.__doPostBack("LoadPage",sUrl);
//				else
//					parent.__doPostBack("LoadPage",sUrl);
//			}
//		}
//	}
//}

//function LoadPlayer()
//{
//	WriteFlashObj("Flash/player.swf",437,170,false)
//}

//function LoadMapa()
//{
//	WriteFlashObj("Flash/map.swf",215,572,true)
//}
//function LoadMainHeader()
//{
//	WriteFlashObj("Flash/Main/inner_pages.swf",776,271,false);
//}

//function LoadMapaStrip()
//{
//	WriteFlashObj("Flash/Mapa/strip_map.swf",280,13,false);
//}

//function LoadHomePageLogo()
//{	// SuperGoal right banner.
//	WriteFlashObj("Flash/Home/logo.swf",267,253,false)
//}

//function LoadLeftBanner()
//{
//	WriteFlashObj("Flash/Home/index_lefttop.swf",185,253,false)
//}

//function LoadMenu()
//{
//	WriteFlashObj("Flash/Home/index_center.swf",776,345,false)
//}

function DocumentWrite(sHtml)
{
	document.write(sHtml);
}

function WriteFlashObj(sSrc,sWidth,sHeight,bTrans)
{
    if (sSrc != '') {
	    var sObj = "";
	    var sWMode = "";
	    var sObjID = sSrc.replace(".swf","");
	    var oLang = document.getElementById('ItemLang');
	    var sLang = "Lang=";
    	
	    if(oLang != null){
		    sLang = sLang+oLang.value;
		    if(sSrc.indexOf("?")>0)
			    sLang = "&"+sLang;
		    else
			    sLang = "?"+sLang;
		    sSrc = sSrc+sLang;
	    }
    		
	    sObj = sObj+"<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab' width='"+sWidth+"' height='"+sHeight+"' id='"+sObjID+"' align='middle' VIEWASTEXT>";
	    sObj = sObj+"<param name='allowScriptAccess' value='sameDomain' />";
	    sObj = sObj+"<param name='movie' value='"+sSrc+"' />";
	    sObj = sObj+"<param name='quality' value='high' />";
	    sObj = sObj+"<param name='bgcolor' value='#ffffff' />";
	    if(bTrans == true){
		    sObj = sObj+"<PARAM NAME='WMode' VALUE='Transparent'>";
		    sWMode = "wmode='transparent'";
	    }
	    sObj = sObj+"<embed src='"+sSrc+"' quality='high' bgcolor='#ffffff' "+sWMode+" width='"+sWidth+"' height='"+sHeight+"' ID='"+sObjID+"' NAME='bg' align='middle' allowScriptAccess='sameDomain' swLiveConnect=true ID='bg' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
	    sObj = sObj+"</object>";
    	
	    DocumentWrite(sObj);
    }
}

//function LoadNews(ID)
//{
//	var sURL="sgNewsDet.aspx?NewsID="+ID;
//	__doPostBack("LoadPage",sURL);
//}

//function LoadSurvey(ID)
//{
//	var sURL="sgSurveyDet.aspx?PollID="+ID;
//	__doPostBack("LoadPage",sURL);
//}



//function sgCheckAnswerCounter(Contrl)
//{

//if (Contrl=='WebUserSexM'){var Contr2='WebUserSexF'}else{var Contr2='WebUserSexM'}
//       if (document.getElementById(Contrl).checked==false) {
//           document.getElementById(Contr2).checked=true;
//       }else
//       {
//           document.getElementById(Contr2).checked=false;
//        
//}
//}




//function veryfyAnswer()
//{
//var oOptions=document.getElementsByName("SurveyOptions");
//var vReturn =false;
//var vMsg=document.getElementById("alertMsg");
//for (i =0;i<oOptions.length; i++)
//{
//	if (oOptions[i].checked)
//	{
//		vReturn=true;
//	}
//}

//	if (vReturn==false )
//	{
//		if (vMsg!=null)
//		{
//			alert(vMsg.value);
//		}
//		return false;
//	}
//	else{
//		return true;}
//}


//function goToMapArea(Position) {
//	__doPostBack("redirToZone",Position)
//}

//function AddtoFav()
//{
//	if (document.all)
//	{
//		window.external.AddFavorite(sFavDomain,sFavName)
//	}
//}
//function MakeHome()
//{
//	//var oObj = document.getElementsByTagName("td")[0];
//	//oObj.style.behavior="url(#default#homepage)";
//	//oObj.setHomePage(sFavDomain);
//}
//function DropListSelect(oObj,sSubID)
//{
//	var oSubList = document.getElementById(oObj.id+oObj.selectedIndex);
//	var oSelect = document.getElementById(sSubID);
//	//oSelect.options = oSubList.options;
//	if(oSelect != null && oSubList != null){
//		
//		var i = 0;
//		oSelect.innerHTML = "";
//		if(oSubList != null){
//			var sVal = "";
//			for(i=0;i<(oSubList.options.length);i++)
//			{
//				sVal = oSubList.options[i].text;
//				oSelect.options[i] = new Option(sVal,sVal);
//			}
//		}
//		if(oSelect.innerHTML == ""){
//			oSelect.options[0] = new Option(sVal,sVal);
//		}
//	}
//}

//function rowHandler(AnsRowID)
//{
//	if (document.getElementById(AnsRowID).className.indexOf("displayOn")>-1)
//	{
//		document.getElementById(AnsRowID).className = "displayOff";		
//	}
//	else
//	{
//		document.getElementById(AnsRowID).className = "displayOn";		
//	}
//}
//	
//	
//function ShowTips(ShowID)
//{

//var hideDivID=document.getElementById("HideTipID").value

//if (hideDivID!=null && hideDivID!=''){
//var oDivID=document.getElementById(hideDivID)
//oDivID.className = "displayOff";
//oDivID.stop();
//}

//var oShowDivID=document.getElementById(ShowID)
//	if (oShowDivID!=null)
//	{
//	oShowDivID.className = "displayOn";
//	oShowDivID.start();
//	document.getElementById("HideTipID").value=ShowID
//	}
//	
//}

//function loginCommand(iCmd)
//{
//	var sUrl = "";
//	//alert(iCmd)
//	switch(iCmd)
//	{
//		//case 1:; break;
//		case 2:goToMenuIndex(1); break;
//		//case 3:; break;
//		//case 4:; break;
//	}
//}

//function getCubcategories(catID) 
//{

//   __doPostBack('getSubCat',catID)
//	
//}

//function getPageNum(PageID,catID) 
//{

//   __doPostBack('PageNum_'+PageID,catID)
//	
//}

//function OpenPopUpGallery(fileID) 
//{
//              window.open("popUpGallery.aspx?fileID=" + fileID,'','width=546,height=550,status=no');
//}


//function movieActiveX() 
//{
//	var oMovieCont=document.getElementById ("MovieCont")
//	var oMovieContText=oMovieCont.innerHTML
//	oMovieCont.innerHTML=oMovieContText
//}
