﻿
$(function(){var zIndexNumber=1000;$('div').each(function(){$(this).css('zIndex',zIndexNumber);zIndexNumber-=10;});zIndexNumber=2000;$('div.map div').each(function(){$(this).css('zIndex',zIndexNumber);zIndexNumber+=10;});$('.header, .header .content, .header a').css('zIndex',1100);$('.main-nav').css('zIndex',1200);$('.second-level-nav').css('zIndex',1100);$('.ImageSliderInfo').css('zIndex',1400);$('.ad-image-wrapper').css('overflow','hidden');$('.footer .special-tools a').mouseover(function(){$(this).children('.normal').css('display','none');$(this).children('.hover').css('display','inline');}).mouseout(function(){$(this).children('.normal').css('display','inline');$(this).children('.hover').css('display','none');});$('a.font-plus').click(function(){changeFontSize('plus');return false;});$('a.font-minus').click(function(){changeFontSize('minus');return false;});$(".prompt").each(function(){if($(this).next().val()==""){$(this).css('display','block');}});$(".prompt").click(function(){$(this).css('display','none');$(this).next().focus();});$(".search-input").click(function(){$(this).parent().find(".prompt").css('display','none');$(this).focus();});$(".prompt").next().bind("blur",function(){if($(this).val()==""){$(this).parent().find(".prompt").css('display','block');}});$(".prompt").next().bind("focus",function(){$(this).parent().find(".prompt").css('display','none');});});function changeFontSize(operation){currentSize=$('#Framework').css('fontSize');newSize=currentSize;if(operation=='plus'){switch(currentSize){case'50%':newSize='70%';break;case'70%':newSize='90%';break;case'10px':newSize='70%';break;}}else{switch(currentSize){case'90%':newSize='70%';break;case'70%':newSize='50%';break;}}
$('#Framework').css('fontSize',newSize);widestElement=$('.figure').width()===null?$('.page').width():$('.figure').width();if($('html').width()<widestElement){$('body').css('width',widestElement);}}
