var docArray=["index.php","home.php"];$(document).ready(function(){if(CurrentDocName()==docArray[1]){$(".frm_upload_sec .msk").animate({opacity:0.9},{duration:10,queue:false})}else{$(".liBox").centreElm({aniSpeed:10,easing:"linear"})}$(window).bind("load",function(){if(CurrentDocName()==docArray[1]){SetMainHeight()}});$(window).bind("resize",function(){if(CurrentDocName()==docArray[1]){SetMainHeight()}else{$(".liBox").centreElm()}});$("#frmLogin").submit(function(){elmName=$("#frmLogin .txtbox");liFrmVals=new Array(elmName.eq(0).val(),elmName.eq(1).val());if(CheckEmail(liFrmVals[0])&&liFrmVals[1]!=""){$.ajax({type:"POST",url:"media/scripts/php/li.php",data:"func:li&vals="+liFrmVals.toString(),success:function(a){if(a){$("#frmLogin #uliresult").text("Redirecting...");window.location=docArray[1]}else{$("#frmLogin #uliresult").text("User was not found.")}}})}return false});$("a").click(function(){thisLink=$(this).attr("href");thisRel=$(this).attr("rel");if(thisLink!=""&&thisLink!=" "&&thisLink!="#"){if(thisRel=="nw"){window.open(thisLink)}else{window.location=thisLink}}return false});$(".frm_upload_sec").submit(function(){$(this).children(".msk").show().parent().children("#uploadres").text("Processing...").show()})});(function(a){a.fn.extend({centreElm:function(b){var c={easing:"easeInOutExpo",aniSpeed:300};var b=a.extend(c,b);return this.each(function(){var h=b.easing;var i=b.aniSpeed;var j=a(this);var d=j.height();var f=j.width();var e=a(window).height();var g=a(window).width();j.animate({top:((e/2)-(d/2)),left:((g/2)-(f/2))},{duration:i,easing:h})})}})})(jQuery);function CheckEmail(a){AtPos=a.indexOf("@");StopPos=a.lastIndexOf(".");if(AtPos==-1||StopPos==-1){return false}else{return true}}function SetMainHeight(){winHeight=$(window).height();$(".wrap960").css({height:winHeight})}function CurrentDocName(){thisURL=document.location.href;strUrl=thisURL.split("/");strUrl=strUrl.pop().split("?");strUrl=strUrl[0].split("#");return strUrl[0]};