// lazy shortcut
d=document;

//preload images for frameset subnav

if (d.images) {
sections = new Array("small","med","large","visit","smmed_visit","large_visit");
for (x=0;x<=sections.length;x++){
var setup = sections[x]+'on = new Image();'+sections[x]+'on.src = "http://movies.apple.com/trailers/paramount/without_a_paddle/images/nav/'+sections[x]+'_on.jpg";'+sections[x]+'off = new Image();'+sections[x]+'off.src = "http://movies.apple.com/trailers/paramount/without_a_paddle/images/nav/'+sections[x]+'_off.jpg";'
eval(setup)
}
}

// simple rollover/rollout functions

function on(which){if (d.images){document[which].src = eval(which + "on.src");}}
function off(which){if (d.images){document[which].src = eval(which + "off.src");}}


// popwin function

function popwin(url,name,width,height){
var t=(screen.height-height)/2;
var l=(screen.width-width)/2;
window.open(url,name,'width='+width+',height='+height+',top='+t+',left='+l+',location=0,status=0,scrollbars=0,toolbar=0,resizeable=no,noresize');
}

function popscroll(url,name,width,height){
var t=(screen.height-height)/2;
var l=(screen.width-width)/2;
window.open(url,name,'width='+width+',height='+height+',top='+t+',left='+l+',location=0,status=0,scrollbars=1,toolbar=0,resizeable=no,noresize');
}

// the actual things being opened making use of the above two functions

function popterms(){
popwin ('http://www.withoutapaddlemovie.com/pop.php?which=terms','terms',490,500)
}

function popprivacy(){
popwin ('http://www.withoutapaddlemovie.com/pop.php?which=privacy','privacy',490,500)
}
