function bodyOnLoad(a){initialImgDrop();if(a==1){Sound.play("files/01.mp3")}}function initialImgDrop(){if(typeof(conHome)=="undefined"){conHome=0}if(conHome==0){$("IFrame").morph("left:0px; top:-200px;");conHome=1;return false}else{if(conHome==1){$("IFrame").morph("left:0px; top:232px; width:100%; height:78px;");conHome=0;return false}}}function viewer(){if(typeof(runme)=="undefined"){runme=0}if(runme==0){$("rightBox").morph("width:800px; left:10%; right:10%");runme=1;return false}else{if(runme==1){$("rightBox").morph("width:20px;");runme=0;return false}}}function mover(){if(typeof(conHome)=="undefined"){conHome=0}if(conHome==0){$("mainBox").morph("top: -900px;");$("container").morph("top:10px; height:78px; margin-top:170px;");$("morphLine").morph("background-color: #FFB000; height:78px; top: 232px;");$("morphLine2").morph("height:7px;  top: 124px; width: 100%;");$("leftCorner").morph("left:-1200px;");$("leftCorner2").morph("left:-1200px;");conHome=1;return false}else{if(conHome==1){document.getElementById("mainBox").style.display="block";$("body").morph("height:100%");$("mainBox").morph("top:-11px;");$("container").morph("top:0px; height:110px; margin-top:6px;");$("morphLine").morph("background-color: #ff7700; height: 7px;");$("morphLine2").morph("height:20px;  top: 108px; width: 810px;");$("leftCorner").morph("left:-400px; top:-30px;");$("leftCorner2").morph("left:-408px; top:-52px;");conHome=0;return false}}}function pager(b,c,a){document.getElementById(b).src=a+"page.php?page="+c}function adminpager(b,c,a){document.getElementById(b).src=a+"page.php?admin&page="+c}function editNewspager(b,d,a,c){window.parent.document.getElementById(b).src=a+"/page.php?admin&artid="+c+"&page="+d}function testpager(b,c,a){window.parent.document.getElementById(b).src=a+"page.php?admin&page="+c}function login(){if(typeof(logclick)=="undefined"){logclick=0}if(logclick==0){document.getElementById("login").style.display="block";logclick=1;return false}else{if(logclick==1){document.getElementById("login").style.display="none";logclick=0;return false}}}function confirmation(){var a=confirm("Are you sure?");if(a){}else{window.parent.location="http://whistlingbiscuits.co.uk/"}}function wbfader(a){new Effect.Opacity(a,{from:1,to:0,duration:6})}function calcHeight(a,c){var b=document.getElementById(a).contentWindow.document.body.scrollHeight;document.getElementById(a).height=b+c;alert(b+c)};