if(typeof(help_hostname)=="undefined"){var help_hostname="help.switch.ch"}var excludeList=[".noicon",":has(img)"];$(document).ready(function(){addFileIcons();addExtLinkIcon();addPopUpIcon()});function addExtLinkIcon(){getSwitchJqueryCommands();var a=[location.hostname,help_hostname,"*.switch.ch","www.nic.ch"];$("#col3 a, #col2 a").not(getExcludeFileEndingList()).filter(":SWITCH_parents(.noicon)").filter(function(){var b="*"+this.hostname.substring(this.hostname.indexOf("."),this.hostname.length);return this.hostname&&(jQuery.inArray(this.hostname,a)==-1)&&(jQuery.inArray(b,a)==-1)}).attr("title","External Link").addClass("fileicon_ext")}function addPopUpIcon(){getSwitchJqueryCommands;$('#help_nav a[onclick*="window.open"], #col3 a[onclick*="window.open"], #col2 a[onclick*="window.open"]').not(getExcludeFileEndingList()).filter(":SWITCH_parents(.noicon)").attr("title","Popup Link").addClass("fileicon_popup")}function initFileIcon(a,d,b,f){$.each(a,function(c,e){$(e+" a[href$='."+d+"']").filter(":SWITCH_parents(.noicon)").not(".noicon, :has(img)").attr("title",b).addClass(f);var g="a[href$='."+d+"']";if(jQuery.inArray(g,excludeList)==-1){excludeList.push(g)}})}function getExcludeFileEndingList(){var a='"';$.each(excludeList,function(b,c){if(b<excludeList.length-1){a+=c+", "}else{if(b==excludeList.length-1){a+=c+'";'}}});return a}function addFileIcons(){getSwitchJqueryCommands();initFileIcon(["#col2","#col3"],"url","External Link","fileicon_ext");initFileIcon(["#col2","#col3"],"pdf","Adobe .pdf","fileicon_pdf");initFileIcon(["#col2","#col3"],"doc","Word .doc","fileicon_doc");initFileIcon(["#col2","#col3"],"xls","Excel .xls","fileicon_xls");initFileIcon(["#col2","#col3"],"ppt","PowerPoint .ppt","fileicon_ppt");initFileIcon(["#col2","#col3"],"txt","Textfile .txt","fileicon_txt");initFileIcon(["#col2","#col3"],"xml","Extensible Markup Language .xml","fileicon_xml");initFileIcon(["#col2","#col3"],"zip","Compressed .zip","fileicon_zip");initFileIcon(["#col2","#col3"],"jpg","Image","fileicon_img");initFileIcon(["#col2","#col3"],"png","Image","fileicon_img");initFileIcon(["#col2","#col3"],"tiff","Image","fileicon_img");initFileIcon(["#col2","#col3"],"gif","Image","fileicon_img");initFileIcon(["#col2","#col3"],"psd","Image","fileicon_img");initFileIcon(["#col2","#col3"],"ai","Image","fileicon_img");initFileIcon(["#col2","#col3"],"jpeg","Image","fileicon_img");initFileIcon(["#col2","#col3"],"mp3","Audio","fileicon_audio");initFileIcon(["#col2","#col3"],"wav","Audio","fileicon_audio");initFileIcon(["#col2","#col3"],"ogg","Audio","fileicon_audio");initFileIcon(["#col2","#col3"],"mov","Video","fileicon_video");initFileIcon(["#col2","#col3"],"mp4","Video","fileicon_video");initFileIcon(["#col2","#col3"],"mpeg2","Video","fileicon_video");initFileIcon(["#col2","#col3"],"mpg","Video","fileicon_video");initFileIcon(["#col2","#col3"],"avi","Video","fileicon_video")}function getSwitchJqueryCommands(){jQuery.expr[":"].SWITCH_parents=function(c,d,b){return jQuery(c).parents(b[3]).length<1}};if(typeof(help_hostname)=="undefined"){var help_hostname="help.switch.ch"}$(document).ready(function(){$("#search_btn").hover(function(){$(this).css("background-image","url(<cms:link>../images/suche_button_hover.gif</cms:link>)")},function(){$(this).removeAttr("style")});if(location.hash.length==0){$("input#searchfield").focus()}hoverContentContainerImg();formatHelpPopup()});function hoverContentContainerImg(){$(".hoverimg").each(function(){if($(this).children("img").length==2){var a;var b;$(this).children("img").each(function(){if($(this).hasClass("hidden")){b=$(this)}else{a=$(this)}});$(this).hover(function(){a.hide();b.css("display","inline")},function(){a.show();b.removeAttr("style")})}})}function formatHelpPopup(){jQuery.expr[":"].SWITCH_parents=function(c,d,b){return jQuery(c).parents(b[3]).length<1};$('#submenu a[href*="'+help_hostname+'"], #linkbox_dots a[href*="'+help_hostname+'"], #col3 a[href*="'+help_hostname+'"], #col2 a[href*="'+help_hostname+'"]').filter(":SWITCH_parents(.noicon)").not(".noicon").removeAttr("onclick").addClass("fileicon_popup").click(function(a){window.open(this.href,"","width=850,height=700,top=100,left=100,status=yes,toolbar=yes,menubar=yes,resizable=yes,scrollbars=yes");a.preventDefault();return false})};var mouse_is_inside=false;$(document).ready(function(){var a=document.location.protocol+"//www.switch.ch/";$(".servicebackground").before('<div class="servicebutton">All Services by SWITCH</div>').append('<iframe class="iframesliderwrapper" frameborder="0" src="'+a+'en/feeds/serviceslider.html"></iframe><div class="closeoverlay">&nbsp;</div>');$(".servicebutton").click(function(){$(".servicebackground").slideToggle("slow");$(".servicebutton, .servicebutton:hover").toggleClass("servicebutton_opened")});$(".servicebackground, .servicebutton").hover(function(){mouse_is_inside=true},function(){mouse_is_inside=false});$("body").mouseup(function(){if(($(".servicebackground").length>0)&&(!mouse_is_inside)&&($(".servicebackground").css("display")!="none")){$(".servicebackground").hide();$(".servicebutton").toggleClass("servicebutton_opened")}});$(".servicebackground").click(function(b){if($(b.target).is(".close_link, .closeoverlay")){$(".servicebackground").slideToggle("slow");$(".servicebutton").toggleClass("servicebutton_opened")}})});
