function klappe(id)
{var klappText=document.getElementById('k'+ id);var klappBild=document.getElementById('pic'+ id);if(klappText.style.display=='none'){klappText.style.display='block';}
else{klappText.style.display='none';}}
function klappe_news(id)
{var klappText=document.getElementById('k'+ id);var klappBild=document.getElementById('pic'+ id);if(klappText.style.display=='none'){klappText.style.display='block';klappBild.src='pic/hideme.gif';}
else{klappText.style.display='none';klappBild.src='pic/showme.gif';}}
function toggle(divid){if(document.getElementById(divid).style.visibility=="hidden"){document.getElementById(divid).style.visibility="visible";document.getElementById(divid).style.display="";}else{document.getElementById(divid).style.visibility="hidden";document.getElementById(divid).style.display="none";}}
function toggle1(divid){menu=document.getElementById(divid);if(menu.className=="hidden")
menu.className='visible';else
menu.className='hidden';}
var checkflag="false";function check(field){if(checkflag=="false"){for(i=0;i<field.length;i++){field[i].checked=true;}
checkflag="true";return"Uncheck All";}
else{for(i=0;i<field.length;i++){field[i].checked=false;}
checkflag="false";return"Check All";}}
$(document).ready(function(){$("body").bind("click",function(e){$('.dropdown-toggle').parent("li").removeClass("open");});$("#main").bind("mouseover",function(e){$('.dropdown-toggle').parent("li").removeClass("open");});$(".dropdown-toggle").bind("mouseover",function(e){$('.dropdown-toggle').parent("li").removeClass("open");var $li=$(this).parent("li").addClass('open');return false;});$("#topselect").bind('change',function(e){if(document.forms.topsearch.searchinput.value!=''){$('#topsearch').submit();}});if(document.getElementById('inbox').src.indexOf('mail')!=-1){$('#main').prepend('<a href="/inbox.php"><div style="background-color: #C43C35;text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);background-repeat: repeat-x;background-image: -khtml-gradient(linear, left top, left bottom, from(#ee5f5b), to(#c43c35));background-image: -moz-linear-gradient(top, #ee5f5b, #c43c35);background-image: -ms-linear-gradient(top, #ee5f5b, #c43c35);background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ee5f5b), color-stop(100%, #c43c35));background-image: -webkit-linear-gradient(top, #ee5f5b, #c43c35);background-image: -o-linear-gradient(top, #ee5f5b, #c43c35);background-image: linear-gradient(top, #ee5f5b, #c43c35);filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=\'#ee5f5b\', endColorstr=\'#c43c35\', GradientType=0);border-color: #c43c35 #c43c35 #882a25;border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);border-radius: 4px 4px 4px 4px;color: #FFFFFF;border-style: solid;border-width: 1px;box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;margin-bottom: 18px;padding: 7px 14px;font-size: 16px;width:auto;">You have unread message(s). Click here to read them.</div></a>');}});
