window.name="Fullgaz";

function NewWindow(mypage, myname, w, h, scroll) {
  var winl = (screen.width - w) / 2;
  var wint = (screen.height - h) / 2;
  winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',status=yes,scrollbars='+scroll+',resizable'
  win = window.open(mypage, myname, winprops)
  if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function AdsWindow(mypage, myname, w, h, scroll) {
  var winl = (screen.width - w) / 2;
  var wint = (screen.height - h) / 2;
  winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',status=no,titlebar=no,scrollbars='+scroll+',resizable'
  win = window.open(mypage, myname, winprops)
  if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function NewDefaultWindow(mypage) {

  win = window.open(mypage)
  if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function AddFav() {

width  = 100;
height = 100;

	  
	window.moveTo(0,0)

	
	 
	self.resizeTo(width,height);
	


if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
 var url="http://www.fullgaz.co.il";
 var title="fullgaz.co.il - מגזין אופנועים עברי";
 window.external.AddFavorite(url,title);
}
else {
	<!-- Other users will get a reminder to press CTRL-D to bookmark -->
  var msg = "כדי להוסיף אותנו לרשימת המועדפים הקש (CTRL-D)";
  document.write(msg);
}
}

function CheckFromWhere()
{
}

function NewWin640(URL)
{
	NewWindow(URL,'','640','480','yes')
}

function NewWinBooksa(URL)
{
	NewWindow(URL,'','640','360','yes')
}



function NewWin800(URL)
{
	NewWindow(URL,'','800','600','yes')
}

function NewWinFeedback(URL)
{
	NewWindow(URL,'','540','420','yes')
}

function NewWinImage(URL)
{
  winprops = 'height=760,width=1050,top=10,left=10,status=yes,scrollbars=yes,resizable';
  win = window.open(URL, "pics", winprops);
  if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }

}

function whatbrowser(){
        if(document.layers){
            return("NN4");
        }
        if(document.all){
             return("ie");
        }
        if(!document.all && document.getElementById){
             return("NN6");
        }
}

function trim(_data) {
  return _data.replace(/^\s+|\s+$/g, '');
}

////////////// INDEX PAGE LEFT BANNER ///////////////////

function initPage()
{

			//// WinW and WinH will hold actual screen width
			var winW = 630, winH = 460;
			if (parseInt(navigator.appVersion)>3) {
				 if (navigator.appName=="Netscape") {
				  winW = window.innerWidth;
				  winH = window.innerHeight;
				 }
			 if (navigator.appName.indexOf("Microsoft")!=-1) {
				  winW = document.body.offsetWidth;
				  winH = document.body.offsetHeight;
				 }
			}
			


			if(winW > 990)   ///// if browser screen is wide enough  ////////
			{
					b=whatbrowser(); 
					if (b=="NN4")document.LeftBanner.visibility="visible";
					if (b=="NN6")document.getElementById("LeftBanner").style.visibility="visible";
					if (b=="ie")document.all.LeftBanner.style.visibility="visible";
			}
			if(winW <= 990)   ///// if browser screen is NOT wide enough  ////////
			{
					b=whatbrowser(); 
					if (b=="NN4")document.LeftBanner.visibility="hidden";
					if (b=="NN6")document.getElementById("LeftBanner").style.visibility="hidden";
					if (b=="ie")document.all.LeftBanner.style.visibility="hidden";
			}

}

