










function mailThisUrl(){var s=" mailto:?subject="+document.title+"&body="+document.title+":   "+location.href;window.location=s;}
function ShowPhotoGalleryRandomPartnerLink(proportion,url,text,newwindow)
{var random=Math.random();if(random<proportion/100&&random!=0)
{var td=document.getElementById("photogallery_partner_random_link_id");if(newwindow)
{td.innerHTML="<a href=\""+url+"\" target=\"_blank\">"+text+"</a>";}
else
{td.innerHTML="<a href=\""+url+"\">"+text+"</a>";}}}
function OnDirectoryDropDownButtonClicked(input,pageUrl)
{var parent=input.parentNode;if(parent.getElementsByTagName("select").length!=1)return;var select=parent.getElementsByTagName("select")[0];if(select.selectedIndex==0)return;var selectedValue=select.options[select.selectedIndex].value;var href=pageUrl+selectedValue.replace(/\x27/g,"").replace(/\x22/g,"");window.location.href=href;}
function ShowRandomPartnerLink(ele_id,proportion,url,text)
{var random=Math.random();if(random<proportion/100&&random!=0)
{var td=document.getElementById(ele_id);td.innerHTML="<a href=\""+url+"\">"+text+"</a>";}}
function IE7FilterMethod(fadelength,url,img,img_width,img_height,alt,content_width)
{document.write("<a href='"+url+"'><img src='"+img+"' width='"+img_width+"px' height='"+img_height+"px' alt='"+alt+"' style='filter:alpha(Opacity=100, FinishOpacity=0, Style=1, StartX=75, StartY=0, FinishX=300, FinishY=0)' /></a><div style='height: 0px; left: -"+fadelength+"px;'><div class='content_background' style='position : relative; width: "+content_width+"px; height: 200px'></div>");}
function FF2Workaround(fadelength,url,img,img_width,img_height,alt,backgroundcolor,leftside,content_width)
{document.write("<a href='"+url+"'><img src='"+img+"' width='"+img_width+"px' height='"+img_height+"px' alt='"+alt+"' style='filter:alpha(Opacity=100, FinishOpacity=0, Style=1, StartX=75, StartY=0, FinishX=300, FinishY=0)' /></a><div style='height: 0px; left: -"+fadelength+"px;'><div class='content_background' style='position : relative; width: "+content_width+"px'>");for(var i=0;i<=100;i++)
{j=(i/36);document.write("<div style='width: 2px; height:200px; background:"+backgroundcolor+"; filter:alpha(opacity="+i+"); -moz-opacity: "+j+"; opacity: "+j+"; left :"+fadelength+"px;'></div>");}
document.write("<div style='width: 2px; height:200px; background:"+backgroundcolor+"; filter:alpha(opacity=100); -moz-opacity: 1; opacity: 1; left : "+fadelength+"px;'></div><div class='last_background' style='width: 132px; height:200px; background:"+backgroundcolor+"; position: absolute;left:"+leftside+"px'></div></div>");}
function FinallyPart(url,content_text_left,link_position,link_width,link_text,abstract_text,isLink)
{document.write("<div class=\"content_text\" style=\"position: relative; left:"+content_text_left+"px; width: 432px; float: right\"><a href=\""+url+"\"style=\"margin-left:"+link_position+"px;width:"+link_width+"px;float:left;\" class=\"maineditorial_link\">"+link_text+"</a>");if(isLink=='true')
{document.write("<a href=\""+url+"\">");}
document.write("<span style=\"margin-left:"+link_position+"px;width:"+link_width+"px; float: left \">"+abstract_text+"</span>");if(isLink=='true')
{document.write("</a>");}
document.write("</div></div>");}