if (document.images) {
  image1on = new Image();
  image1on.src = "/im/gp-on_prz.gif";

  image2on = new Image();
  image2on.src = "/im/gp-on_com.gif";

  image3on = new Image();
  image3on.src = "/im/gp-on_tourn.gif";

  image4on = new Image();
  image4on.src = "/im/gp-on_prof.gif";

  image5on = new Image();
  image5on.src = "/im/gp-on_acc.gif";

  image6on = new Image();
  image6on.src = "/im/gp-on_hlp.gif";

  image7on = new Image();
  image7on.src = "/im/gp-on_sgn.gif";


  image1off = new Image();
  image1off.src = "/im/main_20.gif";

  image2off = new Image();
  image2off.src = "/im/main_21.gif";

  image3off = new Image();
  image3off.src = "/im/main_22.gif";

  image4off = new Image();
  image4off.src = "/im/main_23.gif";

  image5off = new Image();
  image5off.src = "/im/main_24.gif";

  image6off = new Image();
  image6off.src = "/im/main_25.gif";

  image7off = new Image();
  image7off.src = "/im/main_15.gif";

}


function turnOn(imageName) {

  if (document.images) {
    document[imageName].src = eval(imageName + "on.src");
  }
}



function turnOff(imageName) {
  if (document.images) {
    document[imageName].src = eval(imageName + "off.src");
  }
}

// -->

<!--
	function openWin( windowURL, windowName, windowFeatures ) {
		return window.open( windowURL, windowName, windowFeatures ) ;
	}
// -->


var bookmarkurl="http://www.gamepipe.com/?bookmark"
var bookmarktitle="GamePipe.com - Play free games online!"

function addbookmark(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

//Popup Window Script
//By JavaScript Kit (http://javascriptkit.com)
//JavaScript tutorials and over 400+ free scripts

function openpopup(){
var popurl="/popupprivacypolicy.php"
winpops=window.open(popurl,"","width=450,height=338,scrollbars,")
}


function popup(url,w,h){
        if (!window.focus){
                return true;
        }else{
                var href;
                var day=new Date();
                var id="window"+day.getTime();
                if(typeof(url)=='string'){
                        href=url;
                }else{
                        href=url.href;
                }
                window.open(href,id,'top='+((screen.height-h)/2)+',left='+((screen.width-w)/2)+',toolbar=0,status=0,resizable=0,width='+w+',height='+h+',scrollbars=0');
                return false;
        }
}

function popupscroll(url,w,h){
        if (!window.focus){
                return true;
        }else{
                var href;
                var day=new Date();
                var id="window"+day.getTime();
                if(typeof(url)=='string'){
                        href=url;
                }else{
                        href=url.href;
                }
                window.open(href,id,'top='+((screen.height-h)/2)+',left='+((screen.width-w)/2)+',toolbar=0,status=0,resizable=0,width='+w+',height='+h+',scrollbars=1');
                return false;
        }
}
<!--
	function openWin( windowURL, windowName, windowFeatures ) {
		return window.open( windowURL, windowName, windowFeatures ) ;
	}
// -->


var bookmarkurl="http://www.gamepipe.com/?bookmark"
var bookmarktitle="GamePipe.com - Play free games online!"

function addbookmark(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

/* TOOLTIP STUFF */

function doTooltip(e, msg) {
	if ( typeof Tooltip == "undefined" || !Tooltip.ready ){
		return;
	}
	Tooltip.show(e, msg);
}
function doTooltip2(){
	var ttId=this.attributes.ttId.value;
	var tipHtml="";
	if(typeof t[ttId]!="object"){	
		tipHtml=eval(ttId);
		if(typeof tipHtml!="string"){
			tipHtml="";
		}
	}else{
		tipHtml='<div class=poptop><span style="position:relative;top:7px;left:12px;"><b>'+t[ttId][0]+'</b>&nbsp;<img src="/images/'+t[ttId][1]+'stars.gif" width="64" height="12"></span></div><div align=center class=popmid><table width=270 cellpadding=4 cellspacing=0 class=gamedesc><tr><td align=left valign=top><img src="';
		if(t[ttId][6]=="1"){
			tipHtml+='/games/images/';
		}else if(t[ttId][6]=="0"){
			tipHtml+='/images/gpv2/shots/';
		}
		tipHtml+=t[ttId][2]+'" width="130" alt=""></td><td align=left valign=top>'+t[ttId][3]+'<br />';
		if(isNaN(t[ttId][4])){
			tipHtml+='<br /><b>Played: </b>'+t[ttId][4]+' times';
		}
		if(isNaN(t[ttId][5])){
			tipHtml+='<br /><b>Played Today: </b>'+t[ttId][5]+' times';
		}
		tipHtml+='</td></tr></table></div><div align=center class=popbot></div>';
	}
	if(typeof event=="undefined"){
		doTooltip(this,tipHtml);
	}else{
		doTooltip(event,tipHtml);
	}
}
function hideTip() {
	if ( typeof Tooltip == "undefined" || !Tooltip.ready ){ 
		return;
	}
	Tooltip.hide();
}
function insertToolTipMouseOvers(){
	var as=document.getElementsByTagName('a');
	for(i=0;i<as.length;i++){
		if(/\btt\b/.test(as[i].className)){
			as[i].onmouseover=doTooltip2;
			as[i].onmouseout=hideTip;
		}
	}
}
