//browser sniffer
var agt=navigator.userAgent.toLowerCase();
var is_major = parseInt(navigator.appVersion);
var is_minor = parseFloat(navigator.appVersion);

var is_nav = ((agt.indexOf('mozilla')!=-1)
    && (agt.indexOf('spoofer')==-1)
    && (agt.indexOf('compatible') == -1)
    && (agt.indexOf('opera')==-1)
    && (agt.indexOf('webtv')==-1));
var is_nav2 = (is_nav && (is_major == 2));
var is_nav3 = (is_nav && (is_major == 3));
var is_nav4 = (is_nav && (is_major == 4));
var is_nav4up = (is_nav && (is_major >= 4));
var is_navonly = (is_nav && ((agt.indexOf(";nav") != -1) ||
    (agt.indexOf("; nav") != -1)) );
var is_nav5 = (is_nav && (is_major == 5));
var is_nav5up = (is_nav && (is_major >= 5));

var is_ie = (agt.indexOf("msie") != -1);
var is_ie3 = (is_ie && (is_major < 4));
var is_ie4 = (is_ie && (is_major == 4) &&
    (agt.indexOf("msie 5.0")==-1) );
var is_ie4up = (is_ie && (is_major >= 4));
var is_ie5 = (is_ie && (is_major == 4) &&
    (agt.indexOf("msie 5.0")!=-1) );
var is_ie5up = (is_ie && !is_ie3 && !is_ie4);

var is_aol = (agt.indexOf("aol") != -1);
var is_aol3 = (is_aol && is_ie3);
var is_aol4 = (is_aol && is_ie4);

var is_opera = (agt.indexOf("opera") != -1);
var is_webtv = (agt.indexOf("webtv") != -1);


// os detection
var is_pc=(navigator.platform.substring(0,3)=='Win');
var is_mac=(navigator.platform.substring(0,3) == 'Mac')

// resolution check
var sw=screen.width;
var sh=screen.height;

//status=sw+" "+sh;
//alert ('navigator.appName=['+navigator.appName+'], navigator.appVersion=['+navigator.appVersion);

function poster()
{
	var myLeft = (sw-1024)/2;
	var myTop = (sh-768)/2-20;
if(sw>1024)
	{
	if(is_ie4up&&is_pc) fs=window.open("/walktoremember/poster.html","_blank","width=600,height=870,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=0,toolbar=0");
	else if(is_ie4up&&is_mac) fs=window.open("/walktoremember/poster.html","_blank","width=600,height=870,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=0,toolbar=0");
	else if(is_nav4up&&is_pc) fs=window.open("/walktoremember/poster.html","_blank","width=600,height=870,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=0,toolbar=0");
	else if(is_nav4up&&is_mac) fs=window.open("/walktoremember/poster.html","_blank","width=600,height=870,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=0,toolbar=0");
	}
else if(sw==1024){
	if(is_ie4up&&is_pc) fs=window.open("/walktoremember/poster.html","_blank","width=600,height=650,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=0,toolbar=0");
	else if(is_ie4up&&is_mac) fs=window.open("/walktoremember/poster.html","_blank","width=600,height=650,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=0,toolbar=0");
	else if(is_nav4up) fs=window.open("/walktoremember/poster.html","_blank","width=600,height=650,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=0,toolbar=0");
	}
else{
	if(is_ie4up&&is_pc) fs=window.open("/walktoremember/poster.html","_blank","width=600,height=500,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=0,toolbar=0");
	else if(is_ie4up&&is_mac) fs=window.open("/walktoremember/poster.html","_blank","width=600,height=500,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=0,toolbar=0");
	else if(is_nav4up) fs=window.open("/walktoremember/poster.html","_blank","width=600,height=500,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=0,toolbar=0");
	}

fs.focus();
}

function launchGallery1(){
	window.open("/walktoremember/gallery1.html", "sweepstakes","toolbar=0,scrollbars=0,menubar=0,resizable=0,width=643,height=482");
}
function launchGallery2(){
	window.open("/walktoremember/gallery2.html", "sweepstakes","toolbar=0,scrollbars=0,menubar=0,resizable=0,width=643,height=482");
}
function launchGallery3(){
	window.open("/walktoremember/gallery3.html", "sweepstakes","toolbar=0,scrollbars=0,menubar=0,resizable=0,width=643,height=482");
}
function launchMandy(){
	window.open("/walktoremember/mandy_pic1.html", "sweepstakes","toolbar=0,scrollbars=0,menubar=0,resizable=0,width=643,height=482");
}
function popVideo(theURL,winName,features) {
  window.open(theURL,winName,features);
}
function launchFlash(){
	window.open("/walktoremember/home.html", "flash","toolbar=0,scrollbars=0,menubar=0,resizable=0,width=780,height=552");
}

//rollover script
function over(imgName,img_src) {
document[imgName].src=img_src;
}
function out(imgName,img_src) {
document[imgName].src=img_src;
}

function preLoadMyImages() {
arg=preLoadMyImages.arguments;
imgs=new Array();
i=imgs.length
for(i=0; i<arg.length; i++)
if (arg[i]!=0) {
imgs[i]=new Image;
imgs[i].src=arg[i];
	}
}

function launchWin(){
window.open("/walktoremember/contest_pop.html", "contest", 'toolbar=0,menubar=0,resizable=0,width=300,height=400, scrollbars=no');
}
