	
		height_menu_open=new Array();sfHover=function(){var b=document.getElementById("table").getElementsByTagName("LI");for(var a=0;a<b.length;a++){b[a].onmouseover=function(){this.className+=" sfhover"};b[a].onmouseout=function(){this.className=this.className.replace(new RegExp(" sfhover\\b"),"")}}};function submitform(a){document.forms[a].submit()}function close_div(a){document.getElementById(a).style.overflow="hidden";close_recursive(a,0,null)}function open_div(a){open_recursive(a,0,null)}function close_recursive(f,c,d){div_opener_new(f);div_interval=get_opener_div_interval(f);if(div_interval==null||c==1){var a=document.getElementById(f);var b=a.offsetHeight;var e=b;height_opener_div=get_opener_div_height(f);if(height_opener_div==0||height_opener_div==null){set_opener_div_height(f,e)}if(e>2){change=e/4;a.style.height=e-change+"px";div_interval=setTimeout("close_recursive('"+f+"',1,"+d+")",1);set_opener_div_interval(f,div_interval)}else{set_opener_div_interval(f,null);if(d!=null){d(f)}a.style.height="0px"}}else{}}function open_close_header_margin(b,a){div=document.getElementById(b);if(a=true){margin_to=10}else{margin_to=0}margin_bot=div.style.marginBottom;if(margin_bot==margin_to){if(margin_to==0){div.className="underline_title_no_margin"}else{div.className="underline_title"}}else{if(margin_bot>margin_to){div.style.marginBottom=margin_bot-1}else{div.style.marginBottom=margin_bot+1}setTimeout("open_close_header_margin('"+b+"',"+a+")",1)}}function open_recursive(e,c,d){div_opener_new(e);div_interval=get_opener_div_interval(e);if(div_interval==null||c==1){var a=document.getElementById(e);div_height=get_opener_div_height(e);if(div_height==null||div_height==0){div_height=getHeight(a);set_opener_div_height(e,div_height)}header_tag=document.getElementById(e+"_header");var b=a.style.height;if(b!=""){height=b.replace(/px/gi,"").valueOf();height=parseFloat(b)}else{height=b}if(height==0||height==""){height=1}change=height+(div_height-height)/4;diff=1;if(navigator.appName=="Microsoft Internet Explorer"){diff=3}if(height<div_height&&(change<(div_height-diff))){new_height=change;a.style.display="block";a.style.height=new_height+"px";div_interval=setTimeout("open_recursive('"+e+"',1,"+d+")",1);set_opener_div_interval(e,div_interval)}else{set_opener_div_interval(e,null);if(d!=null){d(e)}}}else{}}function getHeight(e){var c=e.style;var a=c.visibility;var f=c.position;var g=c.display;sh=c.height;elh=e.height;elw=e.width;e.width=e.offsetWidth;c.visibility="hidden";c.position="absolute";c.display="block";c.height="auto";e.height="auto";var b=(parseInt(c.height)>0)?c.height:e.offsetHeight;e.width=elw;c.display=g;c.position=f;c.visibility=a;c.height=sh;e.height=elh;return b}function getWidth(e){var c=e.style;var b=c.visibility;var f=c.position;var g=c.display;sh=c.height;elh=e.height;elw=e.width;e.width=e.offsetWidth;c.visibility="hidden";c.position="absolute";c.display="block";c.height="auto";c.width="auto";e.height="auto";var a=(parseInt(c.width)>0)?c.width:e.offsetWidth;e.width=elw;c.display=g;c.position=f;c.visibility=b;c.height=sh;e.height=elh;return a}function get_opener_div_interval(b){for(var a=0;a<height_menu_open.length;a++){if(height_menu_open[a].div_name==b){return height_menu_open[a].div_interval}}return 0}function set_opener_div_interval(c,a){for(var b=0;b<height_menu_open.length;b++){if(height_menu_open[b].div_name==c){height_menu_open[b].div_interval=a}}return null}function get_opener_div_height(b){for(var a=0;a<height_menu_open.length;a++){if(height_menu_open[a].div_name==b){return height_menu_open[a].div_height}}return null}function set_opener_div_height(c,b){for(var a=0;a<height_menu_open.length;a++){if(height_menu_open[a].div_name==c){height_menu_open[a].div_height=b}}return null}function div_opener_exists(b){for(var a=0;a<height_menu_open;a++){if(height_menu_open[a].div_name==b){return true}}return false}function div_opener_new(a){if(!div_opener_exists(a)){div_object=new Object();div_object.div_name=a;div_object.div_interval=null;height_menu_open.push(div_object)}}function subnav_control(a){action=document.getElementById(a+"_control").className;div_height=get_opener_div_height(a);if(action=="subnav_control_close"){close_recursive(a,0,subnav_control_close)}else{if(action=="subnav_control_open"){open_recursive(a,0,subnav_control_open)}}}function subnav_control_open(a){if(document.getElementById(a+"_control")!=null){document.getElementById(a+"_control").className="subnav_control_close"}}function subnav_control_close(a){if(document.getElementById(a+"_control")!=null){document.getElementById(a+"_control").className="subnav_control_open"}}function portfolio_control(){port=document.getElementById("portfolio_control_ele");if(port.className=="user_bar_show"){open_recursive("userbox_portfolio_content",0,null);port.className="user_bar_hide"}else{close_recursive("userbox_portfolio_content",0,null);port.className="user_bar_show"}}function portfolio_control_close(){document.getElementById("portfolio_control_ele").className="subnav_control_open";var c=new Date();var b=c.getTime();var a=SITEURL+"/libs/ajax/ajax_userbar_status.php?timestamp="+b;params="userbar_status=0";xmlHttp_portfolio=GetXmlHttpObject(null);xmlHttp_portfolio.open("POST",a,true);xmlHttp_portfolio.setRequestHeader("Cache-Control","no-cache");xmlHttp_portfolio.setRequestHeader("Cache-Control","no-store");xmlHttp_portfolio.setRequestHeader("Cache-Control","must-revalidate");xmlHttp_portfolio.setRequestHeader("Cache-Control","post-check=0");xmlHttp_portfolio.setRequestHeader("Cache-Control","pre-check=0");xmlHttp_portfolio.setRequestHeader("If-Modified-Since","Sat, 1 Jan 2000 00:00:00 GMT");xmlHttp_portfolio.setRequestHeader("Content-Type","application/x-www-form-URLencoded");xmlHttp_portfolio.setRequestHeader("Content-Length",params.length);xmlHttp_portfolio.setRequestHeader("Connection","close");xmlHttp_portfolio.send(params)}function portfolio_control_open(){document.getElementById("portfolio_control_ele").className="subnav_control_close";var c=new Date();var b=c.getTime();var a=SITEURL+"/libs/ajax/ajax_userbar_status.php?timestamp="+b;params="userbar_status=1";xmlHttp_portfolio=GetXmlHttpObject(null);xmlHttp_portfolio.open("POST",a,true);xmlHttp_portfolio.setRequestHeader("Cache-Control","no-cache");xmlHttp_portfolio.setRequestHeader("Cache-Control","no-store");xmlHttp_portfolio.setRequestHeader("Cache-Control","must-revalidate");xmlHttp_portfolio.setRequestHeader("Cache-Control","post-check=0");xmlHttp_portfolio.setRequestHeader("Cache-Control","pre-check=0");xmlHttp_portfolio.setRequestHeader("If-Modified-Since","Sat, 1 Jan 2000 00:00:00 GMT");xmlHttp_portfolio.setRequestHeader("Content-Type","application/x-www-form-URLencoded");xmlHttp_portfolio.setRequestHeader("Content-Length",params.length);xmlHttp_portfolio.setRequestHeader("Connection","close");xmlHttp_portfolio.send(params)}function clear_text(b,a){var c=document.getElementById(b).value;if(c==a){document.getElementById(b).value=""}}function ShowHide(){Args=ShowHide.arguments;if(Args.length>0){Args=new Array(Args[0],Args[1],Args[2])}else{return false}switch(Args[1]){case"hidden":if(Args[2]=="fixed"){if(document.getElementById){document.getElementById(Args[0]).style.visibility="hidden"}else{if(document.all[Args[0]]){document.all[Args[0]].style.visibility="hidden"}else{if(document.layers){document.layers[Args[0]].visibility="hide"}else{return false}}}return true}else{if(document.getElementById){document.getElementById(Args[0]).style.display="none"}else{if(document.all[Args[0]]){document.all[Args[0]].style.display="none"}else{if(document.layers){document.layers[Args[0]].visibility="hide"}else{return false}}}return true}break;case"visible":if(Args[2]=="fixed"){if(document.getElementById){document.getElementById(Args[0]).style.visibility="visible"}else{if(document.all[Args[0]]){document.all[Args[0]].style.visibility="visible"}else{if(document.layers){document.layers[Args[0]].visibility="show"}else{return false}}}return true}else{if(document.getElementById){document.getElementById(Args[0]).style.display="block"}else{if(document.all[Args[0]]){document.all[Args[0]].style.display="block"}else{if(document.layers){document.layers[Args[0]].visibility="show"}else{return false}}}return true}break;default:if(document.getElementById){if(Args[2]=="fixed"){if(document.getElementById(Args[0]).style.visibility=="visible"){document.getElementById(Args[0]).style.visibility="hidden"}else{document.getElementById(Args[0]).style.visibility="visible"}return true}else{if(document.getElementById(Args[0]).style.display=="block"){document.getElementById(Args[0]).style.display="none"}else{document.getElementById(Args[0]).style.display="block"}return true}}else{if(document.all[Args[0]]){if(Args[2]=="fixed"){if(document.all[Args[0]].style.visibility=="visible"){document.all[Args[0]].style.visibility="hidden"}else{document.all[Args[0]].style.visibility="visible"}return true}else{if(document.all[Args[0]].style.display=="block"){document.all[Args[0]].style.display="none"}else{document.all[Args[0]].style.display="block"}return true}}else{if(document.layers[Args[0]]){if(document.layers[Args[0]].visibility="show"){document.layers[Args[0]].visibility="hide"}else{document.layers[Args[0]].visibility="show"}return true}else{return false}}}}return}function GetXmlHttpObject(c){var f=null;if(c==null){c=function(){}}var a=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.3.0","Msxml2.XMLHTTP","Microsoft.XMLHTTP"];try{f=new XMLHttpRequest()}catch(d){for(var b=0;b<a.length;b++){try{f=new ActiveXObject(a[b])}catch(d){continue}}}f.onreadystatechange=c;return f}function save_site_mood(){close_white_box("mysitemood_box");site_mood_close();value=document.getElementById("sliderValue2").value;var c=new Date();var b=c.getTime();var a=SITEURL+"/libs/ajax/ajax_site_mood.php?timestamp="+b;params="mood_value="+value;xmlHttp_site_mood=GetXmlHttpObject(null);xmlHttp_site_mood.open("POST",a,true);xmlHttp_site_mood.setRequestHeader("Cache-Control","no-cache");xmlHttp_site_mood.setRequestHeader("Cache-Control","no-store");xmlHttp_site_mood.setRequestHeader("Cache-Control","must-revalidate");xmlHttp_site_mood.setRequestHeader("Cache-Control","post-check=0");xmlHttp_site_mood.setRequestHeader("Cache-Control","pre-check=0");xmlHttp_site_mood.setRequestHeader("If-Modified-Since","Sat, 1 Jan 2000 00:00:00 GMT");xmlHttp_site_mood.setRequestHeader("Content-Type","application/x-www-form-URLencoded");xmlHttp_site_mood.setRequestHeader("Content-Length",params.length);xmlHttp_site_mood.setRequestHeader("Connection","close");xmlHttp_site_mood.send(params)}function site_mood_close(){document.getElementById("site_mood_setting_div").innerHTML=""}function save_site_mood_userbar(c){value=document.getElementById(c).value;var e=new Date();var b=e.getTime();var a=SITEURL+"/libs/ajax/ajax_site_mood.php?timestamp="+b;params="mood_value="+value;xmlHttp_site_mood=GetXmlHttpObject(null);xmlHttp_site_mood.open("POST",a,true);xmlHttp_site_mood.setRequestHeader("Cache-Control","no-cache");xmlHttp_site_mood.setRequestHeader("Cache-Control","no-store");xmlHttp_site_mood.setRequestHeader("Cache-Control","must-revalidate");xmlHttp_site_mood.setRequestHeader("Cache-Control","post-check=0");xmlHttp_site_mood.setRequestHeader("Cache-Control","pre-check=0");xmlHttp_site_mood.setRequestHeader("If-Modified-Since","Sat, 1 Jan 2000 00:00:00 GMT");xmlHttp_site_mood.setRequestHeader("Content-Type","application/x-www-form-URLencoded");xmlHttp_site_mood.setRequestHeader("Content-Length",params.length);xmlHttp_site_mood.setRequestHeader("Connection","close");xmlHttp_site_mood.send(params)}function quick_links_open_end(b){var a=document.getElementById("quick_links_div_scroll").className;document.getElementById("quick_links_div_scroll").className=a+" quick_links_div_overflow"}function quick_links_close_end(c){var b=document.getElementById("quick_links_div_scroll").className;var a=new RegExp("quick_links_div_overflow");b=b.replace(a,"");document.getElementById("quick_links_div_scroll").className=b}function quick_links_folder_open(b){quick_links_folder_close("quick_link_sub");var a="quick_folder_"+b;the_link=document.getElementById(a);if(the_link.className.match("hover")==null&&the_link.className.match("folder")!=null){the_link.className=the_link.className+" hover"}id_list="quick_links_"+b;document.getElementById(id_list).style.display="block"}function quick_links_folder_close(a){children=document.getElementById(a).getElementsByTagName("ul");for(i=0;i<children.length;i++){child=document.getElementById(children[i].id);child.style.display="none"}if(a=="quick_link_sub"){children=document.getElementById("quick_links_folder").getElementsByTagName("a")}else{children=document.getElementById("quick_links_folder2").getElementsByTagName("a")}for(i=0;i<children.length;i++){if(children[i].id!=""){child=document.getElementById(children[i].id);currentClass=child.className;child.className=currentClass.replace("hover","")}}}function display_white_box(b){div_id=document.getElementById("white_box_"+b);div_id.style.visibility="visible";div_id.style.width=(document.documentElement.clientWidth)+"px";div_id.style.height=(document.body.clientHeight)+"px";div_id.style.display="block";if(div_id.style.filter!=null){div_id.style.filter="alpha(opacity=60);";if(navigator.appName=="Microsoft Internet Explorer"&&parseFloat(navigator.appVersion)=="4"){select_elements=document.getElementsByTagName("select");for(i=0;i<select_elements.length;i++){select_elements[i].disabled=true}}}div_id.style.zIndex=10;var a=document.body.scrollTop;if(a==0){if(window.pageYOffset){a=window.pageYOffset}else{a=(document.body.parentElement)?document.body.parentElement.scrollTop:0}}div_content=document.getElementById("white_box_content_"+b);width=getWidth(div_content);height=getHeight(div_content);div_content.style.left=((document.documentElement.clientWidth/2)-(width/2))+"px";div_content.style.top=((document.documentElement.clientHeight/2)-(height/2))+"px";div_content.style.width=width+"px";div_content.style.display="block";div_content.style.visibility="visible";if(typeof document.body.style.maxHeight=="undefined"){div_content.style.filter="alpha(opacity=100);";div_content.style.background="#FFFFFF none";div_content.style.top=a+((document.documentElement.clientHeight/2)-(height/2))+"px"}if(navigator.appName=="Microsoft Internet Explorer"&&parseFloat(navigator.appVersion)=="4"){select_elements=div_content.getElementsByTagName("select");for(i=0;i<select_elements.length;i++){select_elements[i].disabled=false}}}function close_white_box(a){div_id=document.getElementById("white_box_"+a);div_id.style.visibility="hidden";div_id.style.width="0px";div_id.style.height="3000px";div_id.style.display="block";if(div_id.style.filter!=null&&navigator.appName!="Opera"){div_id.style.filter=null;if(navigator.appName=="Microsoft Internet Explorer"&&parseFloat(navigator.appVersion)=="4"){select_elements=document.getElementsByTagName("select");for(i=0;i<select_elements.length;i++){select_elements[i].disabled=false}}}div_content=document.getElementById("white_box_content_"+a);div_content.style.visibility="hidden"}function quick_links_load(){document.getElementById("quick_link_name").value=document.title;document.getElementById("quick_link_link").value=window.location.href}function text_field_control(c,a,b){if(b==0){if(document.getElementById(c).value==""){document.getElementById(c).value=a}}else{if(b==1){element=document.getElementById(c);if(element.value==""){collection=document.getElementsByName(c);for(i=0;i<collection.length;i++){if(collection[i].value==a){collection[i].value=""}}}if(element.value==a){document.getElementById(c).value=""}}}}function get_selected_text_textarea(b){b=document.getElementById(b);if(document.selection){b.focus();sel=document.selection.createRange();a=sel.text}else{var a=(b.value).substring(b.selectionStart,b.selectionEnd)}return a}function insert_comment_link(a){link_href=document.getElementById(a+"_insert_link_comment_link").value;link_text=document.getElementById(a+"_insert_link_comment_text").value;link_code="[link="+link_href+"]"+link_text+"[/link]";if(link_text!=""){if(document.getElementById(a+"_comment_selected_text_end").value>0){comment_content_val=document.getElementById(a).value;comment_content_val_start=comment_content_val.substr(0,document.getElementById(a+"_comment_selected_text_start").value);comment_content_val_end=comment_content_val.substr(document.getElementById(a+"_comment_selected_text_end").value,comment_content_val.length);document.getElementById(a).value=comment_content_val_start+link_code+comment_content_val_end;setCaretTo(document.getElementById(a),(document.getElementById(a+"_comment_selected_text_start").value*1)+link_code.length)}else{insertcode(link_code,a,"1","")}}close_white_box(a+"_link_white_box")}function insert_comment_youtube(a){link_href=document.getElementById(a+"_insert_youtube_link").value;link_code="[youtube]"+link_href+"[/youtube]";insertcode(link_code,a,"1","");close_white_box(a+"_youtube_white_box")}function comment_open_link_whitebox(c){document.getElementById(c+"_insert_link_comment_link").value="";document.getElementById(c+"_insert_link_comment_text").value=get_selected_text_textarea(c);document.getElementById(c+"_comment_selected_text_start").value="0";document.getElementById(c+"_comment_selected_text_end").value="0";txtarea=document.getElementById(c);if(document.selection&&navigator.appName!="Opera"){var a=document.selection.createRange();var b=a.duplicate();b.moveToElementText(txtarea);b.setEndPoint("EndToEnd",a);txtarea.selectionStart=b.text.length-a.text.length;txtarea.selectionEnd=txtarea.selectionStart+a.text.length;document.getElementById(c+"_comment_selected_text_start").value=txtarea.selectionStart;document.getElementById(c+"_comment_selected_text_end").value=txtarea.selectionEnd}else{document.getElementById(c+"_comment_selected_text_start").value=txtarea.selectionStart;document.getElementById(c+"_comment_selected_text_end").value=txtarea.selectionEnd}}function comment_open_youtube_whitebox(c){document.getElementById(c+"_insert_youtube_link").value=get_selected_text_textarea(c);document.getElementById(c+"_comment_selected_text_start").value="0";document.getElementById(c+"_comment_selected_text_end").value="0";txtarea=document.getElementById(c);if(document.selection&&navigator.appName!="Opera"){var a=document.selection.createRange();var b=a.duplicate();b.moveToElementText(txtarea);b.setEndPoint("EndToEnd",a);txtarea.selectionStart=b.text.length-a.text.length;txtarea.selectionEnd=txtarea.selectionStart+a.text.length;document.getElementById(c+"_comment_selected_text_start").value=txtarea.selectionStart;document.getElementById(c+"_comment_selected_text_end").value=txtarea.selectionEnd}else{document.getElementById(c+"_comment_selected_text_start").value=txtarea.selectionStart;document.getElementById(c+"_comment_selected_text_end").value=txtarea.selectionEnd}}function insertcode(b,f,c,g){var a=document.getElementById(f);if(a.value=="Add a Comment"){a.value=""}if(c==0){h="["+b+"]";d="[/"+b+"]"}else{h=b;d=""}if(b=="link"){var e=prompt("Please enter the url","http://");if(e!=null){var h="[link="+e+"]";var d="[/link]"}else{return}}if(document.selection&&navigator.appName!="Opera"){a.focus();sel=document.selection.createRange();if(g==null){g=""}if(sel.text==""&&b=="link"){insert_text="link"}else{if(g!=""&&b=="quote"){insert_text=g}else{insert_text=sel.text}}rangeCopy=sel.duplicate();rangeCopy.moveToElementText(a);rangeCopy.setEndPoint("EndToEnd",sel);start=rangeCopy.text.length-insert_text.length;setCaretTo(a,start);if(g!=""){sel.text=""+h+""+g+d}else{sel.text=""+h+""+insert_text+d}}else{if(a.selectionStart||a.selectionStart=="0"){insert_text=(a.value).substring(a.selectionStart,a.selectionEnd);if(insert_text==""&&b=="link"){insert_text="link"}else{if(g!=""&&b=="quote"){insert_text=g}}text_length=a.selectionStart+h.length+insert_text.length+d.length;a.value=(a.value).substring(0,a.selectionStart)+""+h+""+insert_text+""+d+""+(a.value).substring(a.selectionEnd,a.textLength);setCaretTo(a,text_length)}else{a.value=h+g+d+""}}return}function setCaretTo(b,c){if(b.createTextRange){var a=b.createTextRange();a.move("character",c);a.select()}else{if(b.selectionStart){b.focus();b.setSelectionRange(c,c)}}}function comment_edit_show(b,a){link_id="comment_edit_link_"+b;link=document.getElementById(link_id);if(a==0){comment_delete_show(b,1);ShowHide("comment_edit_"+b)}if(a==1){ShowHide("comment_edit_"+b,"hidden")}}function comment_delete_show(b,a){link_id="comment_delete_link_"+b;link=document.getElementById(link_id);if(a==0){comment_edit_show(b,1);ShowHide("comment_delete_"+b)}if(a==1){ShowHide("comment_delete_"+b,"hidden")}}function notifications_reset(c,g,a){if(!a){a=0}var f=new Date();var e=f.getTime();var b=SITEURL+"/libs/ajax/ajax_notification_reset.php?timestamp="+e;params="object_type="+c+"&object_id="+g+"&ref_id="+a;xmlHttp_comment_notifyreset=GetXmlHttpObject(notification_reset_helper);xmlHttp_comment_notifyreset.open("POST",b,true);xmlHttp_comment_notifyreset.setRequestHeader("Cache-Control","no-cache");xmlHttp_comment_notifyreset.setRequestHeader("Cache-Control","no-store");xmlHttp_comment_notifyreset.setRequestHeader("Cache-Control","must-revalidate");xmlHttp_comment_notifyreset.setRequestHeader("Cache-Control","post-check=0");xmlHttp_comment_notifyreset.setRequestHeader("Cache-Control","pre-check=0");xmlHttp_comment_notifyreset.setRequestHeader("If-Modified-Since","Sat, 1 Jan 2000 00:00:00 GMT");xmlHttp_comment_notifyreset.setRequestHeader("Content-Type","application/x-www-form-URLencoded");xmlHttp_comment_notifyreset.setRequestHeader("Content-Length",params.length);xmlHttp_comment_notifyreset.setRequestHeader("Connection","close");xmlHttp_comment_notifyreset.send(params)}function notification_reset_helper(){if(xmlHttp_comment_notifyreset.readyState==4||xmlHttp_comment_notifyreset.readyState=="complete"){response=xmlHttp_comment_notifyreset.responseText;document.getElementById("comments_notification").innerHTML=response;user_bar_notification=document.getElementById("userbar_comments_notification");if(user_bar_notification!=null){user_bar_notification.innerHTML='<span style="background-image:url('+SITEURL+'/images/site/comment-set-notification.gif);">'+response+"</span>"}}}function comment_moderator_link(c,a){var f=new Date();var e=f.getTime();var b=SITEURL+"/libs/ajax/ajax_moderator_comment.php?timestamp="+e;params="comment_id="+c+"&forum="+a;xmlHttp_comment_moderator=GetXmlHttpObject(comment_moderator_link_helper);xmlHttp_comment_moderator.open("POST",b,true);xmlHttp_comment_moderator.setRequestHeader("Cache-Control","no-cache");xmlHttp_comment_moderator.setRequestHeader("Cache-Control","no-store");xmlHttp_comment_moderator.setRequestHeader("Cache-Control","must-revalidate");xmlHttp_comment_moderator.setRequestHeader("Cache-Control","post-check=0");xmlHttp_comment_moderator.setRequestHeader("Cache-Control","pre-check=0");xmlHttp_comment_moderator.setRequestHeader("If-Modified-Since","Sat, 1 Jan 2000 00:00:00 GMT");xmlHttp_comment_moderator.setRequestHeader("Content-Type","application/x-www-form-URLencoded");xmlHttp_comment_moderator.setRequestHeader("Content-Length",params.length);xmlHttp_comment_moderator.setRequestHeader("Connection","close");xmlHttp_comment_moderator.send(params)}function comment_moderator_link_helper(){if(xmlHttp_comment_moderator.readyState==4||xmlHttp_comment_moderator.readyState=="complete"){response=xmlHttp_comment_moderator.responseText;split=response.split("[SPLIT]");if(split[1]>0){classname=document.getElementById("comment_outer_box_"+split[1]).className;if(split[0]=="0"){document.getElementById("comment_moderator_flag_"+split[1]).innerHTML="";var a=new RegExp("box_yellow");classname=classname.replace(a,"");if(classname==""){classname="box"}}else{document.getElementById("comment_moderator_flag_"+split[1]).innerHTML="<strong>MODERATOR POST</strong>";classname=document.getElementById("comment_outer_box_"+split[1]).className;classname=classname+" box_yellow"}document.getElementById("comment_outer_box_"+split[1]).className=classname}}}function comment_helpful(a){var e=new Date();var c=e.getTime();var b=SITEURL+"/libs/ajax/ajax_comment_helpful.php?timestamp="+c;params="&comment_id="+a;b=b+params;xmlHttp_comment_helpful=GetXmlHttpObject(comment_helpful_helper);xmlHttp_comment_helpful.open("GET",b,true);xmlHttp_comment_helpful.setRequestHeader("Cache-Control","no-cache");xmlHttp_comment_helpful.setRequestHeader("Cache-Control","no-store");xmlHttp_comment_helpful.setRequestHeader("Cache-Control","must-revalidate");xmlHttp_comment_helpful.setRequestHeader("Cache-Control","post-check=0");xmlHttp_comment_helpful.setRequestHeader("Cache-Control","pre-check=0");xmlHttp_comment_helpful.setRequestHeader("If-Modified-Since","Sat, 1 Jan 2000 00:00:00 GMT");xmlHttp_comment_helpful.setRequestHeader("Content-Type","application/x-www-form-URLencoded");xmlHttp_comment_helpful.setRequestHeader("Content-Length",params.length);xmlHttp_comment_helpful.setRequestHeader("Connection","close");xmlHttp_comment_helpful.send(null)}function comment_helpful_helper(){if(xmlHttp_comment_helpful.readyState==4||xmlHttp_comment_helpful.readyState=="complete"){response=xmlHttp_comment_helpful.responseText;split=response.split("[SPLIT]");if(split[1]>0){classname=document.getElementById("comment_outer_box_"+split[1]).className;if(split[0]=="0"){document.getElementById("comment_mark_helpful_link_"+split[1]).innerHTML="Mark as helpful";document.getElementById("comment_mark_helpful_text_"+split[1]).innerHTML="";var a=new RegExp("box_lightgreen");classname=classname.replace(a,"");if(classname==""){classname="box"}}else{document.getElementById("comment_mark_helpful_link_"+split[1]).innerHTML="Unmark as helpful";document.getElementById("comment_mark_helpful_text_"+split[1]).innerHTML='Helpful Post! <img style="vertical-align:middle;" src="'+SITEURL+'/images/site/helpful.gif" alt="This post was flagged as helpful" title="This post was flagged as helpful"/>';classname=document.getElementById("comment_outer_box_"+split[1]).className;classname=classname+" box_lightgreen"}document.getElementById("comment_outer_box_"+split[1]).className=classname}}}function KeyCheck(b){var a=(window.event)?event.keyCode:b.keyCode;return a}function return_do_function(a,b){keyid=KeyCheck(a);if(keyid==13){b()}}function add_to_favourites(d,c){if(c==""){c=document.title}badmessage_1="Your browser doesn't support bookmark popups.\rPlease use the linknand press Command + D to Bookmark the page";if(window.sidebar){window.sidebar.addPanel(c,d,"")}else{if(window.external){nav=navigator.appName;if(nav=="Netscape"){alert(badmessage_1)}else{window.external.AddFavorite(d,c)}}else{if(window.opera){var b=document.createElement("A");b.rel="sidebar";b.target="_search";b.title=c;b.href=d;b.click()}else{nav=navigator.appName;if(nav=="Netscape"){alert(badmessage_1)}else{alert("Your browser doesn't support bookmark popups.\r\nPlease use the link and bookmark this page through your browser")}return true}}}}function ie6_msg_close(){var b="ie6_msg";var c=document.getElementById(b);if(c!=null){var a=SITEURL+"/libs/ajax/ie6_msg_close.php";params="msg=0";xmlHttp_navbar=GetXmlHttpObject(null);xmlHttp_navbar.open("POST",a,true);xmlHttp_navbar.setRequestHeader("Cache-Control","no-cache");xmlHttp_navbar.setRequestHeader("Cache-Control","no-store");xmlHttp_navbar.setRequestHeader("Cache-Control","must-revalidate");xmlHttp_navbar.setRequestHeader("Cache-Control","post-check=0");xmlHttp_navbar.setRequestHeader("Cache-Control","pre-check=0");xmlHttp_navbar.setRequestHeader("If-Modified-Since","Sat, 1 Jan 2000 00:00:00 GMT");xmlHttp_navbar.setRequestHeader("Content-Type","application/x-www-form-URLencoded");xmlHttp_navbar.setRequestHeader("Content-Length",params.length);xmlHttp_navbar.setRequestHeader("Connection","close");xmlHttp_navbar.send(params);close_div(b)}}function rate_change(c){var c=c*1;var b=(c+1);if(document.getElementById("rating_star_"+b)!=null){document.getElementById("rating_star_"+b).src=SITEURL+"/images/site/star_grey.gif"}for(var a=1;a<=c;a++){document.getElementById("rating_star_"+a).src=SITEURL+"/images/site/star.gif"}}function rate_clear(){for(var a=1;a<6;a++){document.getElementById("rating_star_"+a).src=SITEURL+"/images/site/star_grey.gif"}}function comment_show_hide_user(a){ShowHide("comment_hidden_user_"+a);ShowHide("comment_hidden_user_mini_"+a)}function comment_user_perm_show_hide(c,b){var f=new Date();var e=f.getTime();comment_link=document.getElementById("comment_perm_hide_"+b);comment_link_img=comment_link.getElementsByTagName("img");comment_link_img=comment_link_img[0];if(comment_link_img.alt=="Show Member"){show=1}else{show=0}var a=SITEURL+"/libs/ajax/ajax_forum_hide_user.php?timestamp="+e;params="user_id="+c+"&comment_id="+b+"&show="+show;xmlHttp_comment_user=GetXmlHttpObject(comment_user_perm_show_hide_helper);xmlHttp_comment_user.open("POST",a,true);xmlHttp_comment_user.setRequestHeader("Cache-Control","no-cache");xmlHttp_comment_user.setRequestHeader("Cache-Control","no-store");xmlHttp_comment_user.setRequestHeader("Cache-Control","must-revalidate");xmlHttp_comment_user.setRequestHeader("Cache-Control","post-check=0");xmlHttp_comment_user.setRequestHeader("Cache-Control","pre-check=0");xmlHttp_comment_user.setRequestHeader("If-Modified-Since","Sat, 1 Jan 2000 00:00:00 GMT");xmlHttp_comment_user.setRequestHeader("Content-Type","application/x-www-form-URLencoded");xmlHttp_comment_user.setRequestHeader("Content-Length",params.length);xmlHttp_comment_user.setRequestHeader("Connection","close");xmlHttp_comment_user.send(params)}function comment_user_perm_show_hide_helper(){if(xmlHttp_comment_user.readyState==4||xmlHttp_comment_user.readyState=="complete"){response=xmlHttp_comment_user.responseText;reponse=response.split("[SPLIT]");document.getElementById("comment_perm_hide_"+reponse[1]).innerHTML=reponse[0]}}function related_content_tab(a,b){related_tabs=document.getElementById("related_content_tab_list");related_tab_children=related_tabs.getElementsByTagName("li");for(i=0;i<related_tab_children.length;i++){related_tab_children[i].className=""}related_tab_content=document.getElementById("related_content_tab_html");related_tab_content_children=related_tab_content.getElementsByTagName("div");for(i=0;i<related_tab_content_children.length;i++){if(related_tab_content_children[i].id!=""){ShowHide(related_tab_content_children[i].id,"hidden")}}document.getElementById(a).className="current";ShowHide(b,"visible")}function image_select(f,a,c,e){var b=1;while(true){var d=document.getElementById(e+"image_select"+b);if(d!=null){d.className="image_select"}else{break}b++}document.getElementById(e+"image_select"+f).className="image_select_selected";document.getElementById("hidden_selected_image"+e).innerHTML=a;document.getElementById("hidden_selected_image_show"+e).innerHTML='<img src="http://www.ephotozine.com/images/bbcode/'+c+"/thumb/"+a+'" />';document.getElementById("hidden_selected_image_show"+e).style.display="block"}function insert_selected_image(a){image=document.getElementById("hidden_selected_image"+a).innerHTML;img_code="[epzimg]"+image+"[/epzimg]";insertcode(img_code,a,"1","");close_white_box(a+"_img_upload_white_box")}function tab_control(b){if(b=="latest_li"){document.getElementById("latest_li").className="current";document.getElementById("most_commented_li").className="";document.getElementById("popular_li").className="";document.getElementById("most_liked_li").className="";ShowHide("popular","hidden");ShowHide("most_commented","hidden");ShowHide("latest","visible");ShowHide("most_liked","hidden")}else{if(b=="popular_li"){document.getElementById("popular_li").className="current";document.getElementById("latest_li").className="";document.getElementById("most_commented_li").className="";document.getElementById("most_liked_li").className="";ShowHide("popular","visible");ShowHide("latest","hidden");ShowHide("most_commented","hidden");ShowHide("most_liked","hidden")}else{if(b=="most_commented_li"){document.getElementById("most_commented_li").className="current";document.getElementById("latest_li").className="";document.getElementById("popular_li").className="";document.getElementById("most_liked_li").className="";ShowHide("most_commented","visible");ShowHide("latest","hidden");ShowHide("popular","hidden");ShowHide("most_liked","hidden")}else{if(b=="most_liked_li"){document.getElementById("most_liked_li").className="current";document.getElementById("latest_li").className="";document.getElementById("popular_li").className="";document.getElementById("most_commented_li").className="";ShowHide("most_liked","visible");ShowHide("latest","hidden");ShowHide("popular","hidden");ShowHide("most_commented","hidden")}}}}var a=SITEURL+"/libs/ajax/ajax_tab_control.php";params="tab_name="+b;xmlHttp_portfolio=GetXmlHttpObject(null);xmlHttp_portfolio.open("POST",a,true);xmlHttp_portfolio.setRequestHeader("Cache-Control","no-cache");xmlHttp_portfolio.setRequestHeader("Cache-Control","no-store");xmlHttp_portfolio.setRequestHeader("Cache-Control","must-revalidate");xmlHttp_portfolio.setRequestHeader("Cache-Control","post-check=0");xmlHttp_portfolio.setRequestHeader("Cache-Control","pre-check=0");xmlHttp_portfolio.setRequestHeader("If-Modified-Since","Sat, 1 Jan 2000 00:00:00 GMT");xmlHttp_portfolio.setRequestHeader("Content-Type","application/x-www-form-URLencoded");xmlHttp_portfolio.setRequestHeader("Content-Length",params.length);xmlHttp_portfolio.setRequestHeader("Connection","close");xmlHttp_portfolio.send(params)}function find_absolute_posx(a){var b=0;if(a.offsetParent){while(1){b+=a.offsetLeft;if(!a.offsetParent){break}a=a.offsetParent}}else{if(a.x){b+=a.x}}return b}function find_absolute_posy(b){var a=0;if(b.offsetParent){while(1){a+=b.offsetTop;if(!b.offsetParent){break}b=b.offsetParent}}else{if(b.y){a+=b.y}}return a}function set_x_position(b,a){current_x=find_absolute_posx(b);target=document.getElementById(a);target.style.left=current_x+"px"}function form_check_control(b,c){var a=c.checked;form_obj=document.getElementById(b);checkboxes=form_obj.getElementsByTagName("input");for(i=0;i<checkboxes.length;i++){if(checkboxes[i].type=="checkbox"){if(a==true){checkboxes[i].checked=a}else{checkboxes[i].checked=0}}}}function userbar_open_close(){var c=new Date();var b=c.getTime();var a=SITEURL+"/libs/ajax/ajax_userbar_hide.php?timestamp="+b;xmlHttp_comment_userbar_bottom=GetXmlHttpObject(userbar_open_close_helper);xmlHttp_comment_userbar_bottom.open("POST",a,true);xmlHttp_comment_userbar_bottom.setRequestHeader("Cache-Control","no-cache");xmlHttp_comment_userbar_bottom.setRequestHeader("Cache-Control","no-store");xmlHttp_comment_userbar_bottom.setRequestHeader("Cache-Control","must-revalidate");xmlHttp_comment_userbar_bottom.setRequestHeader("Cache-Control","post-check=0");xmlHttp_comment_userbar_bottom.setRequestHeader("Cache-Control","pre-check=0");xmlHttp_comment_userbar_bottom.setRequestHeader("If-Modified-Since","Sat, 1 Jan 2000 00:00:00 GMT");xmlHttp_comment_userbar_bottom.setRequestHeader("Content-Type","application/x-www-form-URLencoded");xmlHttp_comment_userbar_bottom.setRequestHeader("Connection","close");xmlHttp_comment_userbar_bottom.send(null)}function userbar_open_close_helper(){if(xmlHttp_comment_userbar_bottom.readyState==4||xmlHttp_comment_userbar_bottom.readyState=="complete"){response=xmlHttp_comment_userbar_bottom.responseText;icon=document.getElementById("userbar_icon_control_icon");control_bar=document.getElementById("user_bottom_toolbar");if(response==1){ShowHide("user_bottom_toolbar_inner_control","visible");icon.className="user_bottom_toolbar_control_icon_close";control_bar.className="user_bottom_toolbar"}else{ShowHide("user_bottom_toolbar_inner_control","hidden");icon.className="user_bottom_toolbar_control_icon_open";control_bar.className="user_bottom_toolbar_close"}}}function bookmark_control(c,h){var g=document.getElementById("bookmark_control");var a=0;if(g.innerHTML=="Add Bookmark"){a=1}var f=new Date();var e=f.getTime();var b=SITEURL+"/libs/ajax/ajax_bookmark_control.php?timestamp="+e;params="&object_type="+c+"&object_id="+h;b=b+params;xmlHttp_bookmark_control=GetXmlHttpObject(bookmark_control_help);xmlHttp_bookmark_control.open("GET",b,true);xmlHttp_bookmark_control.setRequestHeader("Cache-Control","no-cache");xmlHttp_bookmark_control.setRequestHeader("Cache-Control","no-store");xmlHttp_bookmark_control.setRequestHeader("Cache-Control","must-revalidate");xmlHttp_bookmark_control.setRequestHeader("Cache-Control","post-check=0");xmlHttp_bookmark_control.setRequestHeader("Cache-Control","pre-check=0");xmlHttp_bookmark_control.setRequestHeader("If-Modified-Since","Sat, 1 Jan 2000 00:00:00 GMT");xmlHttp_bookmark_control.setRequestHeader("Content-Type","application/x-www-form-urlencoded");xmlHttp_bookmark_control.setRequestHeader("Content-Length",params.length);xmlHttp_bookmark_control.setRequestHeader("Connection","close");xmlHttp_bookmark_control.send(null)}function bookmark_control_help(){if(xmlHttp_bookmark_control.readyState==4||xmlHttp_bookmark_control.readyState=="complete"){response=xmlHttp_bookmark_control.responseText;document.getElementById("bookmark_control").innerHTML=response}}function pingfm_publish(f,a,e,c){var h=new Date();var g=h.getTime();var b=SITEURL+"/libs/ajax/ajax_ping_fm_publish.php?timestamp="+g;params="object_title="+a+"&link="+e+"&send_id="+f+"&button_id="+c;xmlHttp_ping_fm=GetXmlHttpObject(pingfm_publish_helper);xmlHttp_ping_fm.open("POST",b,true);xmlHttp_ping_fm.setRequestHeader("Cache-Control","no-cache");xmlHttp_ping_fm.setRequestHeader("Cache-Control","no-store");xmlHttp_ping_fm.setRequestHeader("Cache-Control","must-revalidate");xmlHttp_ping_fm.setRequestHeader("Cache-Control","post-check=0");xmlHttp_ping_fm.setRequestHeader("Cache-Control","pre-check=0");xmlHttp_ping_fm.setRequestHeader("If-Modified-Since","Sat, 1 Jan 2000 00:00:00 GMT");xmlHttp_ping_fm.setRequestHeader("Content-Type","application/x-www-form-URLencoded");xmlHttp_ping_fm.setRequestHeader("Content-Length",params.length);xmlHttp_ping_fm.setRequestHeader("Connection","close");xmlHttp_ping_fm.send(params)}function pingfm_publish_helper(){if(xmlHttp_ping_fm.readyState==4||xmlHttp_ping_fm.readyState=="complete"){response=xmlHttp_ping_fm.responseText;response=response.split("[SPLIT]");document.getElementById(response[0]).innerHTML=response[1]}}function cursor_getPosition(b){var e,c,a,d=-1;if(typeof b.selectionStart=="number"){d=b.selectionStart}else{if(document.selection&&b.createTextRange){e=document.selection;if(e){a=e.createRange();c=b.createTextRange();c.setEndPoint("EndToStart",a);d=c.text.length}}}return d}function get_browser_width(){var b,a;if(window.innerWidth){b=window.innerWidth}else{if(document.documentElement&&document.documentElement.clientWidth){b=document.documentElement.clientWidth}else{if(document.body){b=document.body.clientWidth}}}return b}function findPosX(a){var b=0;if(a.offsetParent){while(1){b+=a.offsetLeft;if(!a.offsetParent){break}a=a.offsetParent}}else{if(a.x){b+=a.x}}return b}function findPosY(b){var a=0;if(b.offsetParent){while(1){a+=b.offsetTop;if(!b.offsetParent){break}b=b.offsetParent}}else{if(b.y){a+=b.y}}return a}function createCookie(b,d,e){if(e){var a=new Date();a.setTime(a.getTime()+(e*24*60*60*1000));var c="; expires="+a.toGMTString()}else{var c=""}document.cookie=b+"="+d+c+"; path=/"}function readCookie(b){var f=b+"=";var a=document.cookie.split(";");for(var d=0;d<a.length;d++){var e=a[d];while(e.charAt(0)==" "){e=e.substring(1,e.length)}if(e.indexOf(f)==0){return e.substring(f.length,e.length)}}return null}function getElementsByClass(c,g,b){var f=new Array();if(g==null){g=document}if(b==null){b="*"}var d=g.getElementsByTagName(b);var e=d.length;var a=new RegExp("(^|\\s)"+c+"(\\s|$)");for(i=0,j=0;i<e;i++){if(a.test(d[i].className)){f[j]=d[i];j++}}return f}function xmlParse(b){if(typeof ActiveXObject!="undefined"&&typeof GetObject!="undefined"){var a=new ActiveXObject("Microsoft.XMLDOM");a.loadXML(b);return a}if(typeof DOMParser!="undefined"){return(new DOMParser()).parseFromString(b,"text/xml")}return createElement("div",null)}function closeKeepAlive(){if(/AppleWebKit|MSIE/.test(navigator.userAgent)){$.ajax({url:SITEURL+"/libs/ajax/ajax_connection_close.php",async:false})}}function tab_box_control(c,e,b,g,h){var a=document.getElementById(e);site_child_nodes=a.childNodes;for(i=0;i<site_child_nodes.length;i++){if(site_child_nodes[i].id!=undefined){site_child_nodes[i].className="tab_content";ShowHide(site_child_nodes[i].id,"hidden")}}document.getElementById(g).className="tab_content_current";ShowHide(g,"visible");var f=document.getElementById(c);site_menu_nodes=f.getElementsByTagName("li");for(i=0;i<site_menu_nodes.length;i++){site_menu_nodes[i].className=""}document.getElementById(b).className="current";if(h=="1"){var d=SITEURL+"/libs/ajax/ajax_tab_box_control.php";params="tab="+b+"&tab_list="+c;xmlHttp_navbar=GetXmlHttpObject(null);xmlHttp_navbar.open("POST",d,true);xmlHttp_navbar.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp_navbar.setRequestHeader("Content-length",params.length);xmlHttp_navbar.setRequestHeader("Connection","close");xmlHttp_navbar.send(params)}}function google_track_event(c,b,a){return _gaq.push(["_trackEvent",c,b,a])}function check_register(c){var b=document.getElementById(c).value;document.getElementById(c+"_msg").innerHTML='<div><img src="'+SITEURL+'/images/site/mini-loader.gif" /> Checking</div>';var a=SITEURL+"/libs/ajax/ajax_check_register.php?field="+c+"&value="+b;xmlHttp=GetXmlHttpObject(check_register_helper);xmlHttp.open("GET",a,true);xmlHttp.send(null)}function check_register_helper(){if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){var b=xmlHttp.responseText;var a=b.split("[SPLIT]");document.getElementById(a[0]+"_msg").innerHTML=a[1]}}function comment_edit_portfolio_show_hide(a){ShowHide("comment_hide_"+a)}function article_buynow(a){display_white_box("article_buy_now_box");var e=new Date();var c=e.getTime();params="article_id="+a+"&timestamp="+c;var b=SITEURL+"/libs/ajax/ajax_article_buy_now.php?"+params;xmlHttp_articles=GetXmlHttpObject(article_buynow_helper);xmlHttp_articles.open("GET",b,true);xmlHttp_articles.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp_articles.setRequestHeader("Content-length",params.length);xmlHttp_articles.setRequestHeader("Connection","close");xmlHttp_articles.send(params)}function article_buynow_helper(){if(xmlHttp_articles.readyState==4||xmlHttp_articles.readyState=="complete"){var a=xmlHttp_articles.responseText;document.getElementById("article_buy_now").innerHTML=a}}function article_buynow_close(){document.getElementById("article_buy_now").innerHTML='<center><img src="'+SITEURL+'/images/site/ajax-loader.gif" alt="Loading Results"/><br />Loading Results</center>';close_white_box("article_buy_now_box")};
