
function go(lang,art) {		
	if (lang==1) {
			var url='http://www.ynet.co.il/articles/0,7340,L-ID,00.html'
		} else {
			var url='http://www.ynetnews.com/articles/0,7340,L-ID,00.html'
		}
		var regEx = new RegExp("ID", "gi");
		url=url.replace(regEx,art);
		window.open(url);
	}
function init() {
		var h=screen.height
		//document.all.results.style.height=(h/2)+h/15;
		//document.all.results.innerHTML=heb;
	}

function getLang (lang) {

	document.location="articles.asp?lang=" + lang
}



function getImg(id, subject_id, lang) {
	frames["image"].location="galleryImg.asp?img=" + id + "&subject_id=" + subject_id
}

var currColor = '';
	function focusInput(){
	var e = event.srcElement;
		if (event.type == 'focus')
		{
			currColor	= e.currentStyle.borderColor
			e.style.borderColor = 'black';
		}
		else e.style.borderColor = currColor;

	}


function bookmark(anchor){
	   if(window.external)
	   {
		   window.external.AddFavorite(anchor.getAttribute('href'), anchor.getAttribute('title'));
		   return false;
	   }
	   return true;
	}




function doBlink() {
	  var blink = document.all.tags("BLINK")
	  for (var i=0; i < blink.length; i++)
	    blink[i].style.visibility = blink[i].style.visibility == "" ? "hidden" : ""
	}
	function startBlink() {
	  if (document.all)
	    setInterval("doBlink()",1300)
	}
	//window.onload = startBlink;

	

function clickIE4(){if (event.button==2){return false;}}
if (document.layers){document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS4;}
else if (document.all&&!document.getElementById){document.onmousedown=clickIE4;};document.oncontextmenu=new Function("return false");


function subNow (id) {
	if (document.contact.presentation.checked=="true") {document.contact.presentation.value=" trip "}
	if (document.contact.presentation.checked=="true") {document.contact.presentation.value=" presentation "}
	if (document.contact.articles.checked=="true") {document.contact.articles.value=" articles "}
	document.contact.submit()
}

function writeObj(url,w,h,bgc,httpType,id){
	var str
	str = ""
	//str = str + "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' "
	//str = str + "codebase='"+ httpType + "://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0'"
	//str = str + "width='"+ w +"' height='"+ h +"' id='"+id+"' align='middle'>"
	//str = str + "<param name='allowScriptAccess' value='sameDomain' />"
	//str = str + "<param name='movie' value='"+ url +"' />"
	//str = str + "<param name='quality' value='high' />"
	//str = str + "<param name='bgcolor' value='transparent' />"
	//str = str + "<param name='wmode' value='transparent' />"
	str = str + "<embed src='"+ url +"'  "
	str = str + " quality='high' "
	str = str + " bgcolor=transparent'"
	str = str + " width='"+ w +"' height='"+ h +"' "
	str = str + " name='movieflash_" + id + "' wmode='transparent'" 
	str = str + " align='middle' "
	str = str + " allowScriptAccess='sameDomain' "
	str = str + "  FlashVars='backopacity=100&cubecroptofit=1&enlargecroptofit=0&logopath=http://flash.picturetrail.com/pflicks/ptlogo1.swf&ptdim=50.10&ptxy=300.16&faceopacity=80&img1=http://pic50.picturetrail.com:80/VOL413/8641453/16020837/244685336.jpg&img2=http://pic50.picturetrail.com:80/VOL413/8641453/16020837/244685329.jpg&img3=http://pic50.picturetrail.com:80/VOL413/8641453/16020837/244685310.jpg&img4=http://pic50.picturetrail.com:80/VOL413/8641453/16020837/244685300.jpg&img5=http://pic50.picturetrail.com:80/VOL413/8641453/16020837/244685294.jpg&img6=http://pic50.picturetrail.com:80/VOL413/8641453/16020837/244685291.jpg'  loop='false' type='application/x-shockwave-flash' "
	str = str + "pluginspage='http://www.macromedia.com/go/getflashplayer' /> "
	str = str + "</embed>"
	document.write(str);
}

var currColor = '';
	function focusInput(){
	var e = event.srcElement;
		if (event.type == 'focus')
		{
			currColor	= e.currentStyle.borderColor
			e.style.borderColor = 'black';
		}
		else e.style.borderColor = currColor;

	}
	var UICpid='8';
function adjustUICIframe(hp){document.getElementById('uict').height=hp};
function UICgo(url){location.href=url.replace('ToReplace',UICpid)}

function UTF8ToHebrew_urlEscaped(src) {var s = '';for (i = 0; i < src.length; i++) {var c = src.charCodeAt(i);if (c >= 1488 && c <= 1514) {d = c - 1264;s += '%'+(d.toString(16).toUpperCase());} else {s += escape(src.charAt(i));}} return s.toString();};var msCurSel='articles';var msBgPreLoad=new Image();msBgPreLoad.src='http://www.ynet.co.il/images/mainsearchbtn1p.gif';
function searchOC(lnkCode,collarityCode){if(msCurSel!=lnkCode){document.getElementById('MsLnk'+lnkCode).className='srchLnkSel';document.getElementById('MsLnk'+msCurSel).className='srchLnk';document.getElementById('MsBtn').innerHTML=document.getElementById('MsLnk'+lnkCode).getAttribute('btnCap');msCurSel=lnkCode;} 
document.getElementById('mainSrchBox').focus();if(typeof collarity_compassDefaultType!='undefined') collarity_compassDefaultType=collarityCode;if(typeof collarity_selectCompassType!='undefined') collarity_selectCompassType(collarityCode);}
function msBtnOn(btnObj){btnObj.style.backgroundImage='url(http://www.ynet.co.il/images/mainsearchbtn1p.gif)'}
function msBtnOff(btnObj){btnObj.style.backgroundImage='url(http://www.ynet.co.il/images/mainsearchbtn1.gif)'}
function go1(){parent.searchOC('articles','disabled');parent.document.getElementById('MsBtn').click()};
function msSrch(){
	var searchVal=document.getElementById('mainSrchBox').value;
	switch(msCurSel){
		case 'articles':;searchVal=encodeURIComponent(searchVal);location.href='/search.asp?type=articles&search='+encodeURIComponent(searchVal);break;
		case 'presentations':if(msChk(searchVal)==false) searchVal='';location.href='/search.asp?type=presentations&articles&search='+encodeURIComponent(searchVal);break;
		case 'guides':if(msChk(searchVal)==false) searchVal='';location.href='/search.asp?type=guides&search='+encodeURIComponent(searchVal);break;
		case 'galleries':if(msChk(searchVal)==false) searchVal='';location.href='/search.asp?type=galleries&search='+encodeURIComponent(searchVal);break;
		case 'google':searchVal=UTF8ToHebrew_urlEscaped(searchVal);location.href='http://www.google.com/custom?q='+searchVal+'&sa=%E7%E9%F4%E5%F9+%E1-Google&client=pub-0328064952673622&forid=1&ie=windows-1255&oe=windows-1255&cof=GALT%3A%23008000%3BGL%3A1%3BDIV%3A%23336699%3BVLC%3A663399%3BAH%3Acenter%3BBGC%3AFFFFFF%3BLBGC%3A336699%3BALC%3A0000FF%3BLC%3A0000FF%3BT%3A000000%3BGFNT%3A0000FF%3BGIMP%3A0000FF%3BLH%3A34%3BLW%3A100%3BL%3Ahttp%3A%2F%2Fwww.ronpeled.com%2Fjerusalem%2Fjerusalem_ronpeled.gif%3BS%3Ahttp%3A%2F%2F%3BLP%3A1%3BFORID%3A1&hl=iw';break;}
	}
function msChk(s){var bc=new Array(123,125,92,36,91,93,47);for(var i=0;i<s.length;i++) for(var j=0;j<bc.length;j++) if(s.charCodeAt(i)==bc[j]) return false;if(s.length>8&&!isNaN(s)) return false}

