var gfe=[];gfe={images:[],gfe_open_girl_profile:function(href){jQuery('#popupWrapper').show();jQuery('#popupBody').fadeIn('slow');this.center('#popupDiv');jQuery('#popupDiv').fadeIn('slow',function(){jQuery('#popupBody').css({"-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)",filter:"alpha(opacity=80)"});});jQuery('#popupDivContent').html('<div class="loadingDiv"></div><iframe src="'+href+'" frameborder="0" id="iframePopupContent" name="popupContent" scrolling="auto" style="display:none"></iframe><div class="clear"></div>');jQuery('#iframePopupContent').bind("load",function(){jQuery('.loadingDiv').hide();jQuery(this).fadeIn('slow');jQuery(this).height(jQuery('#popupDivContent').height()-1);jQuery(this).width(jQuery('#popupDivContent').width()-1);});return false;},open_image:function(src){jQuery('#popupWrapper').show();jQuery('#popupBody').fadeIn('slow');this.center('#popupDiv');jQuery('#popupDiv').fadeIn('slow',function(){jQuery('#popupBody').css({"-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)",filter:"alpha(opacity=80)"});});jQuery('#popupDivContent').html('<div class="loadingDiv"></div><p align="center"><img src="'+src+'" /></p><div class="clear"></div>');jQuery('.loadingDiv').hide();return false;},center:function(elemID){var dims=jQuery.clientCoords();var elemWid=700;var leftPos=(dims.width-elemWid)/2;jQuery(elemID).css({left:leftPos});jQuery(elemID).width(elemWid);jQuery(elemID).height(dims.height-60)},preload:function(imgName){var cacheLoadingImg=document.createElement("img");cacheLoadingImg.src=imgName;this.images.push(cacheLoadingImg);},unload:function(){jQuery('.loadingDiv').show();jQuery("#iframePopupContent").hide();},readyIt:function(){this.preload("/images/loading.gif");jQuery("body").append('<div id="popupWrapper"><div id="popupBody" class="popupCanClose"></div><div id="popupDiv"><a href="javascript:void(0);" class="popupCanClose closeImageTag"><img src="/images/Close.jpg" border="0"/></a><div id="popupDivContent"></div></div></div>');jQuery(".popupCanClose").click(function(){jQuery('#popupBody').fadeOut('fast');jQuery('#popupDiv').fadeOut('fast');jQuery('#popupWrapper').fadeOut('fast');});popUpAD=function(href,dummyx,dummy,dummyw,dummyh){gfe.gfe_open_girl_profile(href);}
jQuery(window).resize(function(){gfe.center('#popupDiv');jQuery("#iframePopupContent").height(jQuery('#popupDivContent').height()-1);jQuery("#iframePopupContent").width(jQuery('#popupDivContent').width()-1);});}}
function wall_func(msg,id){__$("#posting_tr").after(msg);__$(".blog_post_place").hide();__$(".blog_post_place_another").show();}
function wall_reply_func(msg,id){__$("#reply_div_form_"+msg).hide();__$("#reply_div_form_"+msg).children("textarea").val("");show_comments(msg);}
function get_blog_paging(page){__$.ajax({type:"post",url:"/ajaxcontrol.php",data:"ajx=1&wp="+page+"&ty=wllst"+"&page_type="+page_type_args,beforeSend:function(){__$("#wall_posts_table").html("<div class='please_wait'><p>Please wait while we process your request</p></div>");},success:function(msg){__$("#wall_posts_table").html(msg);},complete:function(){__$('.please_wait').remove();}});return false;}
function get_blog_reply_paging(id,page){show_comments_extra(id,page);return false;}
function show_comments(txt_id){return show_comments_extra(txt_id,0);}
function report_abuse(id,type){__$.ajax({type:"post",url:"/ajaxcontrol.php",data:"ajx=1&id="+id+"&typ="+type+"&ty=rprt"+"&page_type="+page_type_args,beforeSend:function(){__$("body").append("<div class='please_wait'><p>Please wait while we process your request</p></div>");},success:function(msg){if(msg){alert(msg);}else{alert("Thanks for helping making the site better.");}},complete:function(){__$('.please_wait').remove();}});}
function like_post(id,type){__$.ajax({type:"post",url:"/ajaxcontrol.php",data:"ajx=1&id="+id+"&typ="+type+"&ty=like"+"&page_type="+page_type_args,beforeSend:function(){__$("body").append("<div class='please_wait'><p>Please wait while we process your request</p></div>");},success:function(msg){if(msg){if(msg.substr(0,7)=="success"){like_num=msg.substr(8);__$("#"+type+"_like_"+id).html(like_num);}else{alert(msg);}}},complete:function(){__$('.please_wait').remove();}});}
function add_to_wish(id){__$.ajax({type:"post",url:"/ajaxcontrol.php",data:"ajx=1&id="+id+"&ty=add_to_wish"+"&page_type="+page_type_args,beforeSend:function(){__$("body").append("<div class='please_wait'><p>Please wait while we process your request</p></div>");},success:function(msg){if(msg){alert(msg);}else{__$(".addtowish").html('<a href="javascript:void(0);" class="white" >You wishlisted</a> ');}},complete:function(){__$('.please_wait').remove();}});}
function like_user(id){__$.ajax({type:"post",url:"/ajaxcontrol.php",data:"ajx=1&id="+id+"&ty=like_user"+"&page_type="+page_type_args,beforeSend:function(){__$("body").append("<div class='please_wait'><p>Please wait while we process your request</p></div>");},success:function(msg){if(msg){alert(msg);}else{__$(".likeme").html('<a href="javascript:void(0);" >You like</a>');}},complete:function(){__$('.please_wait').remove();}});}
function show_comments_extra(txt_id,page){__$.ajax({type:"post",url:"/ajaxcontrol.php",data:"ajx=1&id="+txt_id+"&wrp="+page+"&ty=wlrplst"+"&page_type="+page_type_args,beforeSend:function(){__$("#reply_div_"+txt_id).html("<div class='please_wait'><p>Please wait while we process your request</p></div>");},success:function(msg){__$("#reply_div_"+txt_id).html(msg);},complete:function(){__$('.please_wait').remove();}});}
function show_comment_form(txt_id){if(!__$("#reply_div_form_"+txt_id).is(':visible')){__$("#reply_div_form_"+txt_id+" textarea").val("Write a comment...");}
__$("#reply_div_form_"+txt_id).show();}
var gfe_wall=[];var page_type_args="";var usrA=navigator.userAgent;function check_user_agent(val){regEx=new RegExp(val,"i");return regEx.test(usrA);}
__$="";if((jQuery.browser.msie||jQuery.browser.mozilla||jQuery.browser.opera||jQuery.browser.webkit)&&!check_user_agent("opera mini")&&!check_user_agent("blackberry")){__$=jQuery;jQuery(document).ready(function(){__$(".ajaxed_form").live("submit",function(){ajax_args="";__$(this).children(":input").each(function(){ajax_args+="&"+__$(this).attr("name")+"="+encodeURIComponent(__$(this).val());});if(!ajax_args)return false;ajax_args="ajx=1"+ajax_args+"&page_type="+page_type_args;form_this=this;__$.ajax({type:"post",url:"/ajaxcontrol.php",data:ajax_args,beforeSend:function(){__$(form_this).hide();__$(form_this).before("<div class='please_wait'><p>Please wait while we process your request</p></div>");},success:function(msg){if(msg.substr(0,7)=="success"){__$(form_this).children("textarea").val("");var func=__$(form_this).children(".func").val();if(func){eval("if (__$.isFunction("+func+"))"+func+"(msg.substr(8),form_this);");}}else{__$(form_this).before("<div class='form_error'>"+msg+"</div>");}},complete:function(){__$('.please_wait').remove();__$(form_this).show();}});return false;})
if(parent.location.href==window.location.href){jQuery('#onGirlPageMenu').show();}else{jQuery("#onGirlPageMenu").hide();jQuery("a[target=_blank]").attr({target:"_parent"});if(jQuery("#onGirlPageMenu").html()){window.onbeforeunload=function(){window.parent.gfe.unload();};}}
jQuery.clientCoords=function(){var dimensions={width:0,height:0};if(document.documentElement){dimensions.width=document.documentElement.clientWidth;dimensions.height=document.documentElement.clientHeight;}else if(window.innerWidth&&window.innerHeight){dimensions.width=window.innerWidth;dimensions.height=window.innerHeight;}
return dimensions;}});}
var qm_si,qm_li,qm_lo,qm_tt,qm_th,qm_ts,qm_la;var qp="parentNode";var qc="className";var qm_t=navigator.userAgent;var qm_o=qm_t.indexOf("Opera")+1;var qm_s=qm_t.indexOf("afari")+1;var qm_s2=qm_s&&window.XMLHttpRequest;var qm_n=qm_t.indexOf("Netscape")+1;var qm_v=parseFloat(navigator.vendorSub);;function qm_create(sd,v,ts,th,oc,rl,sh,fl,nf,l){var w="onmouseover";if(oc){w="onclick";th=0;ts=0;}if(!l){l=1;qm_th=th;sd=document.getElementById("qm"+sd);if(window.qm_pure)sd=qm_pure(sd);sd[w]=function(e){qm_kille(e)};document[w]=qm_bo;sd.style.zoom=1;if(sh)x2("qmsh",sd,1);if(!v)sd.ch=1;}else if(sh)sd.ch=1;if(sh)sd.sh=1;if(fl)sd.fl=1;if(rl)sd.rl=1;sd.style.zIndex=l+""+1;var lsp;var sp=sd.childNodes;for(var i=0;i<sp.length;i++){var b=sp[i];if(b.tagName=="A"){lsp=b;b[w]=qm_oo;b.qmts=ts;if(l==1&&v){b.style.styleFloat="none";b.style.cssFloat="none";}}if(b.tagName=="DIV"){if(window.showHelp&&!window.XMLHttpRequest)sp[i].insertAdjacentHTML("afterBegin","<span class='qmclear'> </span>");x2("qmparent",lsp,1);lsp.cdiv=b;b.idiv=lsp;if(qm_n&&qm_v<8&&!b.style.width)b.style.width=b.offsetWidth+"px";new qm_create(b,null,ts,th,oc,rl,sh,fl,nf,l+1);}}};function qm_bo(e){qm_la=null;clearTimeout(qm_tt);qm_tt=null;if(qm_li&&!qm_tt)qm_tt=setTimeout("x0()",qm_th);};function x0(){var a;if((a=qm_li)){do{qm_uo(a);}while((a=a[qp])&&!qm_a(a))}qm_li=null;};function qm_a(a){if(a[qc].indexOf("qmmc")+1)return 1;};function qm_uo(a,go){if(!go&&a.qmtree)return;if(window.qmad&&qmad.bhide)
eval(qmad.bhide);a.style.visibility="";x2("qmactive",a.idiv);};;function qa(a,b){return String.fromCharCode(a.charCodeAt(0)-(b-(parseInt(b/2)*2)));}
eval("");;function qm_oo(e,o,nt){if(!o)o=this;if(qm_la==o)return;if(window.qmad&&qmad.bhover&&!nt)eval(qmad.bhover);if(window.qmwait){qm_kille(e);return;}clearTimeout(qm_tt);qm_tt=null;if(!nt&&o.qmts){qm_si=o;qm_tt=setTimeout("qm_oo(new Object(),qm_si,1)",o.qmts);return;}var a=o;if(a[qp].isrun){qm_kille(e);return;}qm_la=o;var go=true;while((a=a[qp])&&!qm_a(a)){if(a==qm_li)go=false;}if(qm_li&&go){a=o;if((!a.cdiv)||(a.cdiv&&a.cdiv!=qm_li))qm_uo(qm_li);a=qm_li;while((a=a[qp])&&!qm_a(a)){if(a!=o[qp])qm_uo(a);else break;}}var b=o;var c=o.cdiv;if(b.cdiv){var aw=b.offsetWidth;var ah=b.offsetHeight;var ax=b.offsetLeft;var ay=b.offsetTop;if(c[qp].ch){aw=0;if(c.fl)ax=0;}else{if(c.rl){ax=ax-c.offsetWidth;aw=0;}ah=0;}if(qm_o){ax-=b[qp].clientLeft;ay-=b[qp].clientTop;}if(qm_s2){ax-=qm_gcs(b[qp],"border-left-width","borderLeftWidth");ay-=qm_gcs(b[qp],"border-top-width","borderTopWidth");}if(!c.ismove){c.style.left=(ax+aw)+"px";c.style.top=(ay+ah)+"px";}x2("qmactive",o,1);if(window.qmad&&qmad.bvis)eval(qmad.bvis);c.style.visibility="inherit";qm_li=c;}else if(!qm_a(b[qp]))qm_li=b[qp];else qm_li=null;qm_kille(e);};function qm_gcs(obj,sname,jname){var v;if(document.defaultView&&document.defaultView.getComputedStyle)v=document.defaultView.getComputedStyle(obj,null).getPropertyValue(sname);else if(obj.currentStyle)v=obj.currentStyle[jname];if(v&&!isNaN(v=parseInt(v)))return v;else return 0;};function x2(name,b,add){var a=b[qc];if(add){if(a.indexOf(name)==-1)b[qc]+=(a?' ':'')+name;}else{b[qc]=a.replace(" "+name,"");b[qc]=b[qc].replace(name,"");}};function qm_kille(e){if(!e)e=event;e.cancelBubble=true;if(e.stopPropagation&&!(qm_s&&e.type=="click"))e.stopPropagation();}
document.write('<style type="text/css">.qmfv{visibility:visible !important;}.qmfh{visibility:hidden !important;}</style><script type="text/JavaScript">var qmad = new Object();qmad.bvis="";qmad.bhide="";qmad.bhover="";</script>');var a=qmad.qm0=new Object();a.overselects_active=true;if(window.showHelp&&!window.XMLHttpRequest){if(qmad.bvis.indexOf("qm_over_select(b.cdiv);")==-1){qmad.bvis+="qm_over_select(b.cdiv);";qmad.bhide+="qm_over_select(a,1);";}};function qm_over_select(a,hide){var z;if((z=window.qmv)&&(z=z.addons)&&(z=z.over_select)&&!z["on"+qm_index(a)])return;if(!a.settingsid){var v=a;while(!qm_a(v))v=v[qp];a.settingsid=v.id;}var ss=qmad[a.settingsid];if(!ss)return;if(!ss.overselects_active)return;if(!hide&&!a.hasselectfix){var f=document.createElement("IFRAME");f.style.position="absolute";f.style.filter="alpha(opacity=0)";f.src="javascript:false;";f=a.parentNode.appendChild(f);f.frameborder=0;a.hasselectfix=f;}var b=a.hasselectfix;if(b){if(hide)b.style.display="none";else{if(a.hasrcorner&&a.hasrcorner.style.visibility=="inherit")a=a.hasrcorner;var oxy=0;if(a.hasshadow&&a.hasshadow.style.visibility=="inherit")oxy=parseInt(ss.shadow_offset);if(!oxy)oxy=0;b.style.width=a.offsetWidth+oxy;b.style.height=a.offsetHeight+oxy;b.style.top=a.style.top;b.style.left=a.style.left;b.style.margin=a.currentStyle.margin;b.style.display="block";}}}<!--
function MM_preloadImages(){var d=document;if(d.images){if(!d.MM_p)d.MM_p=new Array();var i,j=d.MM_p.length,a=MM_preloadImages.arguments;for(i=0;i<a.length;i++)
if(a[i].indexOf("#")!=0){d.MM_p[j]=new Image;d.MM_p[j++].src=a[i];}}}
function MM_swapImgRestore(){var i,x,a=document.MM_sr;for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)x.src=x.oSrc;}
function MM_findObj(n,d){var p,i,x;if(!d)d=document;if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p);}
if(!(x=d[n])&&d.all)x=d.all[n];for(i=0;!x&&i<d.forms.length;i++)x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++)x=MM_findObj(n,d.layers[i].document);if(!x&&d.getElementById)x=d.getElementById(n);return x;}
function MM_swapImage(){var i,j=0,x,a=MM_swapImage.arguments;document.MM_sr=new Array;for(i=0;i<(a.length-2);i+=3)
if((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x;if(!x.oSrc)x.oSrc=x.src;x.src=a[i+2];}}
var popUpWin=0;function popUpWindow(URLStr,left,top,width,height)
{if(popUpWin)
{if(!popUpWin.closed)popUpWin.close();}
popUpWin=open(URLStr,'popUpWin','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');}
function popUpAD(URLStr,left,top,width,height)
{if(popUpWin)
{if(!popUpWin.closed)popUpWin.close();}
popUpWin=open(URLStr,'popUpWin','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width='+600+',height='+670+',left='+100+', top='+100+',screenX='+100+',screenY='+100+'');}
var MAX_symbols=500;var text;function symbols(id)
{if(document.getElementById(id).value.length>MAX_symbols)
{document.getElementById(id).value=document.getElementById(id).value.substring(0,MAX_symbols);return;}
document.getElementById(id+'s').innerHTML='Letters left : '+(MAX_symbols-document.getElementById(id).value.length);}
