function blockError(){return true;}
window.onerror = blockError;




function MM_findObj(n, d) { 
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}



function click(e){if (document.all) if (event.button == 2) return false;if
(document.layers) if (e.which == 3) return false;}
function click2(){event.returnValue=false;return false;}if (document.layers)
document.captureEvents(Event.MOUSEDOWN);document.onmousedown=click;document.oncontextmenu=click2;

var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
if(win.window.focus){win.window.focus();}
}


var isNav, isIE;
var isMac = false;
var coll = "";
var styleObj = "";
var clearMe;

window.name = "View";

if((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) < 6)) {
	isNav = true;
} else {
	isIE = true;
	coll = "all.";
	styleObj = ".style";
}

if (navigator.platform.indexOf("Mac") != -1) {
	isMac = true;
}

	if (isNav) {
		if (isMac) {
			document.write('<link rel="stylesheet" href="styles/gc_styleNM.css" type="text/css">');
		} else {
			document.write('<link rel="stylesheet" href="styles/gc_styleN.css" type="text/css">');
		}
	} else {
		document.write('<link rel="stylesheet" href="styles/gc_style.css" type="text/css">');
	}


//specify url(s) of popunder window(s)

//var popunder=new Array()
//popunder[0]="popup.html"
//popunder[1]="popup2.html"
//popunder[2]="popup3.html"

// Specify the width and height of new popunder window (in pixels).

var width = '250'; 
var height = '420';

var p = 'scrollbars=no,resizable=no,toolbar=no,' + 
'menubar=no,status=no,location=no,left=85,top=20,height=' +  //yes/no, & the screen location
height + ',width=' + width;

// Load new PopUnder only once per browser session? (0=no, 1=yes)
// Putting 0 will cause the Popunder to load every time page is loaded
// Specifying 1 will cause it to load only once per session

var one_time=1



function get_cookie(Name) {
  var search = Name + "="
  var returnvalue = "";
  if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    if (offset != -1) { // if the cookie exists
      offset += search.length
      end = document.cookie.indexOf(";", offset); // set the index of beginning value
      
    if (end == -1) // set the index of the end of cookie value
         end = document.cookie.length;
         returnvalue=unescape(document.cookie.substring(offset, end))
      }
   }
  return returnvalue;
}

function loadornot(){
if (get_cookie('popunder')==''){
load_pop_power()
document.cookie="popunder=yes"
}
}

function load_pop_power(){
win2=window.open(popunder[Math.floor(Math.random()*(popunder.length))],"bw",p)
win2.blur()
window.focus()
}

if (one_time==0)
load_pop_power()
else
loadornot()



