function P7_colH2(){ //v2.1.0 by PVII-www.projectseven.com
 var i,oh,h=0,tg,el,np,dA=document.p7eqc,an=document.p7eqa;if(dA&&dA.length){
 for(i=1;i<dA.length;i+=2){dA[i+1].style.paddingBottom='';}for(i=1;i<dA.length;i+=2){
 oh=dA[i].offsetHeight;h=(oh>h)?oh:h;}for(i=1;i<dA.length;i+=2){oh=dA[i].offsetHeight;
 if(oh<h){np=h-oh;if(!an&&dA[0]==1){P7_eqA2(dA[i+1].id,0,np);}else{
 dA[i+1].style.paddingBottom=np+"px";}}}document.p7eqa=1;
 document.p7eqth=document.body.offsetHeight;
 document.p7eqtw=document.body.offsetWidth;}
}
function P7_eqT2(){ //v2.1.0 by PVII-www.projectseven.com
 if(document.p7eqth!=document.body.offsetHeight||document.p7eqtw!=document.body.offsetWidth){P7_colH2();}
}
function P7_equalCols2(){ //v2.1.0 by PVII-www.projectseven.com
 var c,e,el;if(document.getElementById){document.p7eqc=new Array();
 document.p7eqc[0]=arguments[0];for(i=1;i<arguments.length;i+=2){el=null;
 c=document.getElementById(arguments[i]);if(c){e=c.getElementsByTagName(arguments[i+1]);
 if(e){el=e[e.length-1];if(!el.id){el.id="p7eq"+i;}}}if(c&&el){
 document.p7eqc[document.p7eqc.length]=c;document.p7eqc[document.p7eqc.length]=el}}
 setInterval("P7_eqT2()",10);}
}
function P7_eqA2(el,p,pt){ //v2.1.0 by PVII-www.projectseven.com
 var sp=10,inc=20,g=document.getElementById(el);np=(p>=pt)?pt:p;
 g.style.paddingBottom=np+"px";if(np<pt){np+=inc;
 setTimeout("P7_eqA2('"+el+"',"+np+","+pt+")",sp);}
}

function terms() {
window.open('http://www.wigglyweb.co.uk/terms.htm', 'terms', 'height=430,width=700,scrollbars=1,resizable=0');
}

function faq() {
window.open('http://www.wigglyweb.co.uk/faq.htm', 'faq', 'height=430,width=700,scrollbars=1,resizable=0');
}

function taf() {
window.open('http://www.wigglyweb.co.uk/taf/forminc.php', 'recommend', 'height=500,width=500,scrollbars=0,resizable=0');
}

function forum() {
window.open('http://www.wigglyweb.co.uk/cgi-bin/Blah/Blah.pl', 'wwforum');
}

function classifieds() {
window.open('http://classifieds.wigglyweb.co.uk', 'wwclassads');
}

function chat_win() {
window.open('http://www.wigglyweb.co.uk/chat/', 'wwchat');
}

function home_page() {
self.location.href = "http://www.wigglyweb.co.uk/wigglyweb.php";
}

function resources() {
self.location.href = "http://www.wigglyweb.co.uk/wigglyweb.php";
}

function scripts() {
self.location.href = "http://www.wigglyweb.co.uk/wigglyweb.php";
}

function services() {
self.location.href = "http://www.wigglyweb.co.uk/services.php";
}

function fun_games() {
self.location.href = "http://www.wigglyweb.co.uk/fun_games.php";
}

function news() {
self.location.href = "http://www.wigglyweb.co.uk/news.php?np=wn";
}

function whois() {
self.location.href = "http://www.wigglyweb.co.uk/cgi-bin/whois/whois.cgi";
}

function contact() {
window.open('http://www.wigglyweb.co.uk/contactus.htm', 'contact', 'height=500,width=570,scrollbars=1,resizable=0');
}

function bap() {
window.open('http://www.wigglyweb.co.uk/fun_games/bap.htm', 'bap', 'height=450,width=500,scrollbars=0,resizable=0');
}

function bubbles() {
window.open('http://www.wigglyweb.co.uk/fun_games/bubbles.htm', 'bubbles', 'height=500,width=500,scrollbars=0,resizable=0');
}

function canoe() {
window.open('http://www.wigglyweb.co.uk/fun_games/canoe.htm', 'canoe', 'height=550,width=550,scrollbars=0,resizable=0');
}

function checkers() {
window.open('http://www.wigglyweb.co.uk/fun_games/checkers.htm', 'checkers', 'height=550,width=500,scrollbars=0,resizable=0');
}

function mindreader() {
window.open('http://www.wigglyweb.co.uk/fun_games/mindreader.htm', 'mindreader', 'height=540,width=800,scrollbars=0,resizable=0');
}

if (window.screen.width >800) {
document.write('<STYLE type="text/css">');
document.write('#maincontent { margin: 0px 290px 0px 160px }');
document.write('#memcontent { margin: 0px 130px 0px 160px }');
document.write('#content { margin: 0px 130px 0px 160px }');
document.write('.mc_table { width : 645px }');
document.write('#ad_frame { width : 120px; height : 610px }');
document.write('</style>');
}
else {
document.write('<STYLE type="text/css">');
document.write('#maincontent { margin: 0px 160px 0px 160px }');
document.write('#memcontent { margin: 0px 0px 0px 160px }');
document.write('#content { margin: 0px 0px 0px 160px }');
document.write('#ad_frame { width : 1px; height : 1px }');
document.write('</style>');
}
