$(document).ready(function(){var inject=$('#init');var skinsPath='/themes/SZN24a/';inject.append('<!-- advanced styles [to dynamic DOM trace] -->'+'<link type="text/css" rel="stylesheet" media="screen" title="style" href="'+skinsPath+'style.css" />'+'<link type="text/css" rel="stylesheet" media="screen" title="style-spec" href="'+skinsPath+'style-spec.css" />'+'<link type="text/css" rel="stylesheet" media="screen" title="style-spec-big" href="'+skinsPath+'style-spec-big.css" />'+'<!-- #advanced styles [to dynamic DOM trace] -->');$('.styleswitch').click(function(){$("#sector").fadeOut(700);switchStylestyle(this.getAttribute("rel"));$("#sector").fadeIn(900);return false;});var c=readCookie('style');if(c){switchStylestyle(c);}else{switchStylestyle('style');}});function switchStylestyle(styleName){$('link[rel*=style][title]').each(function(i){this.disabled=true;if(this.getAttribute('title')==styleName)this.disabled=false;if(styleName=='style'){document.getElementById('normal').style.display='block';document.getElementById('spec').style.display='none';document.getElementById('spec-big').style.display='none';}if(styleName=='style-spec'){document.getElementById('normal').style.display='none';document.getElementById('spec').style.display='block';document.getElementById('spec-big').style.display='none';}if(styleName=='style-spec-big'){document.getElementById('normal').style.display='none';document.getElementById('spec').style.display='none';document.getElementById('spec-big').style.display='block';}});createCookie('style',styleName,365);}function createCookie(name,value,days){if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires="; expires="+date.toGMTString();}else var expires="";document.cookie=name+"="+value+expires+"; path=/";}function readCookie(name){var nameEQ=name+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return c.substring(nameEQ.length,c.length);}return null;}function eraseCookie(name){createCookie(name,"",-1);}