var TPC=function(){var d="",f=jQuery,o=d+"/a/i/lightbox",p=o+"/lightbox-ico-loading.gif",m=o+"/lightbox-btn-prev.gif",n=o+"/lightbox-btn-next.gif",i=o+"/lightbox-btn-close.gif",k=o+"/lightbox-blank.gif",j=f("body"),b=PWCC,e=window,s=document,g=navigator;var q=function(){f(function(){if(j.attr("id")=="home"){f("#show-1").click(function(){e.location="./anything/"}).css("cursor","pointer");f("#show-2").click(function(){e.location="./kismet/"}).css("cursor","pointer");f("#show-3").click(function(){e.location="./gg/"}).css("cursor","pointer")}else{h();f(e).resize(h)}f("body#mailinglist form").submit(r);f("a.popup").click(c);if(j.attr("id")=="sub-prices"){f("a.lb").lightBox({fixedNavigation:true,imageLoading:p,imageBtnPrev:m,imageBtnNext:n,imageBtnClose:i,imageBlank:k})}if(j.attr("id")=="gallery"){f("#content-a a").lightBox({imageLoading:p,imageBtnPrev:m,imageBtnNext:n,imageBtnClose:i,imageBlank:k})}});f(e).ready(function(){if(j.attr("id")=="home"){
f("#show-1 .countdown").flash({src:d+"/a/f/anything.swf",wmode:"transparent",width:196,height:100});
f("#show-2 .countdown").flash({src:d+"/a/f/kismet.swf",wmode:"transparent",width:196,height:100});
f("#show-3 .countdown").flash({src:d+"/a/f/greygarden.swf",wmode:"transparent",width:196,height:100});
}else{}})}();var h=function(){var t=f(e).height();if(t>=635){var u=t-635;b.createStyleRule("#container","padding-bottom: "+u+"px;","all");b.createStyleRule("#footer","height: "+u+"px; position: fixed; top: 633px;","all");b.createStyleRule("#content","background-position: 50% 618px; background-attachment: fixed;","all");j.removeClass("shortPort show-shortPort")}else{j.addClass("shortPort");if(j.hasClass("show")){j.addClass("show-shortPort")}}};var c=function(y){var w=f(this).attr("class").split(" ");var x=null,t=null;for(var v=0;v<w.length;v++){var u=w[v].split("-");if(u.length==2&&l(u[1])){if(u[0]=="width"){x=u[1]}else{if(u[0]=="height"){t=u[1]}}}}var z=a(this.href,x,t);if(z==true){y.preventDefault()}};var l=function(t){return !isNaN(t)};var a=function(t,u,C,A,B,v,y,x,z){if(!t){t="/"}if(!u){u=500}if(!C){C=320}if(!A){A="PopupWindow"}if(!B){B="yes"}if(!v){v="no"}if(!y){y="no"}if(!x){x="no"}if(!z){z="yes"}var w=e.open(t,A,"width="+u+",height="+C+",scrollbars="+B+",location="+v+",toolbar="+y+",status="+x+",resizable="+z);return true};var r=function(y){var A=false,x=f("#name"),v=f("#address"),t=f("#suburb"),z=f("#state"),w=f("#postcode"),u=f("#phone");email=f("#email");if(x.val()==""){f("#nameerrormsg").html('<strong style="color: #f00;">Please enter your name.</strong>');x.focus();A=true;y.preventDefault()}else{f("#nameerrormsg").html("*")}if(v.val()==""){f("#addresserrormsg").html('<strong style="color: #f00;">Please enter your address.</strong>');if(A==false){v.focus();A=true}y.preventDefault()}else{f("#addresserrormsg").html("*")}if(t.val()==""){f("#suburberrormsg").html('<strong style="color: #f00;">Please enter your suburb.</strong>');if(A==false){t.focus();A=true}y.preventDefault()}else{f("#suburberrormsg").html("*")}if(z.val()==""){f("#stateerrormsg").html('<strong style="color: #f00;">Please enter your state.</strong>');if(A==false){z.focus();A=true}y.preventDefault()}else{f("#stateerrormsg").html("*")}if(w.val()==""){f("#postcodeerrormsg").html('<strong style="color: #f00;">Please enter your postcode.</strong>');if(A==false){w.focus();A=true}y.preventDefault()}else{f("#postcodeerrormsg").html("*")}if(u.val()==""){f("#phoneerrormsg").html('<strong style="color: #f00;">Please enter your ph number.</strong>');if(A==false){u.focus();A=true}y.preventDefault()}else{f("#phoneerrormsg").html("*")}return}}();
