function emailCheck(a){var c=/^(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum)$/,b=/^[^\s\(\)><@,;:\\\"\.\[\]]+(\.[^\s\(\)><@,;:\\\"\.\[\]]+)*$/;a=a.match(/^(.+)@(.+)$/);if(a==null){alert("Email address seems incorrect (check @ and .'s)");return false}var d=a[1];b=a[2];for(a=0;a<d.length;a++)if(d.charCodeAt(a)>127){alert("Ths username contains invalid characters.");return false}for(a=0;a<b.length;a++)if(b.charCodeAt(a)>127){alert("Ths domain name contains invalid characters."); return false}if(d.match(/^([^\s\(\)><@,;:\\\"\.\[\]]+|("[^"]*"))(\.([^\s\(\)><@,;:\\\"\.\[\]]+|("[^"]*")))*$/)==null){alert("The username doesn't seem to be valid.");return false}d=b.match(/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/);if(d!=null){for(a=1;a<=4;a++)if(d[a]>255){alert("Destination IP address is invalid!");return false}return true}d=/^[^\s\(\)><@,;:\\\"\.\[\]]+$/;b=b.split(".");var e=b.length;for(a=0;a<e;a++)if(b[a].search(d)==-1){alert("The domain name does not seem to be valid."); return false}if(b[b.length-1].length!=2&&b[b.length-1].search(c)==-1){alert("The address must end in a well-known domain or two letter country.");return false}if(e<2){alert("This address is missing a hostname!");return false}return true}function trim(a){return a.replace(new RegExp("^"+String.fromCharCode(92)+"s*"),"").replace(new RegExp(String.fromCharCode(92)+"s*"+String.fromCharCode(36)),"")}function load_idesc(a,c,b){$("#idescr_"+c+"_"+b).load("load_categories.php",{image_id:a})} function image_onclick(a,c,b,d){var e=$("*[identifier="+a+"]").eq(c).attr("big_img_path"),j=$("*[identifier="+a+"]").eq(c).attr("is_vertical"),f=$("*[identifier="+a+"]").eq(c).attr("image_name"),g=$("*[identifier="+a+"]").eq(c).attr("image_description"),h=$("*[identifier="+a+"]").eq(c).attr("category_name"),k=$("*[identifier="+a+"]").eq(c).attr("image_category_id"),l=$("*[identifier="+a+"]").eq(c).attr("image_id"),i="";if(typeof f!="undefined"&&f!=""||typeof g!="undefined"&&g!=""||typeof h!="undefined"&& h!="")i="<div style='text-align: left; padding: 5px; font-size: 12px; font-family: arial; background: #F5f5f5; border: 1px solid #987; color: #444;'>"+(typeof f!="undefined"?"<div><b>"+f+"</b></div>":"")+(typeof g!="undefined"?"<div>"+g+"</div>":"")+(typeof h!="undefined"?"<div id='idescr_"+a+"_"+c+"'><b>Related to: <a href='index.php?catid="+k+"'>"+h+"</a></b> <a href='javascript:;' onclick='load_idesc("+l+", "+a+", "+c+");' style='font: 10px/10px arial;'>(view all)</a></div>":"")+"</div>";$(".main_content").eq(1).html("<div style='position: relative; height: 35px;'><div style='top: 0px; left: 264px; position: absolute;z-index:1000;'><img src='images/larr.gif' border='0' style='cursor: pointer; opacity:0.2; filter:alpha(opacity=20);' "+ (c>0?' onmouseover=\'this.style.opacity="0.7"; this.style.filter="alpha(opacity=70)";\' onmouseout=\'this.style.opacity="0.2"; this.style.filter="alpha(opacity=20)";\' onclick=\'image_onclick('+a+", "+(c-1)+", "+b+");'":"")+">&nbsp;<img src='images/close.gif' border='0' style='cursor: pointer; opacity:0.2; filter:alpha(opacity=20);' onmouseover='this.style.opacity=\"0.7\"; this.style.filter=\"alpha(opacity=70)\";' onmouseout='this.style.opacity=\"0.2\"; this.style.filter=\"alpha(opacity=20)\";' onclick='image_onclick_back();'>&nbsp;<img src='images/rarr.gif' border='0' style='cursor: pointer; opacity:0.2; filter:alpha(opacity=20);' "+ (c<b-1?' onmouseover=\'this.style.opacity="0.7"; this.style.filter="alpha(opacity=70)";\' onmouseout=\'this.style.opacity="0.2"; this.style.filter="alpha(opacity=20)";\' onclick=\'image_onclick('+a+", "+(c+1)+", "+b+");'":"")+"></div></div><div style='text-align: center;'><span style='display: inline-block;'><img src='"+e+"' />"+i+"</span></div>");d||$(".main_content").eq(0).fadeOut("fast",function(){$(".main_content").eq(1).fadeIn("fast")})} function image_onclick_back(){$(".main_content").eq(1).fadeOut("fast",function(){$(".main_content").eq(0).fadeIn("fast")})}function category_onclick(a){if($("#sub_cat_div_"+a).css("display")=="none"){$(".sub_category").slideUp("fast");$("#sub_cat_div_"+a).slideDown("fast")}else $("#sub_cat_div_"+a).slideUp("fast");return false};
function display_hidden_content() {
	var _html = $('.main_content noscript').text();
	$('.hidden_content_wrapper').hide().html(_html).slideDown();
	$('.hidden_content_wrapper_a').slideUp();
}
