﻿<!--
<!-- browser -->
var BrowserDetect={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";},searchString:function(data){for(var i=0;i<data.length;i++){var dataString=data[i].string;var dataProp=data[i].prop;this.versionSearchString=data[i].versionSearch||data[i].identity;if(dataString){if(dataString.indexOf(data[i].subString)!=-1) return data[i].identity;} else if(dataProp) return data[i].identity;}},searchVersion:function(dataString){var index=dataString.indexOf(this.versionSearchString);if(index==-1)return;return parseFloat(dataString.substring(index+this.versionSearchString.length+1));},dataBrowser:[{string:navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari",versionSearch:"Version"},{prop:window.opera,identity:"Opera"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.userAgent,subString:"iPhone",identity:"iPhone/iPod"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]};BrowserDetect.init();
<!-- Detect -->
if((BrowserDetect.browser=="Explorer")&&(BrowserDetect.version=="6")){document.write('<link rel="stylesheet" type="text/css" href="/_css/ie6.css" />')}if((BrowserDetect.browser=="Explorer")){document.write('<link rel="stylesheet" type="text/css" href="/_css/ie.css" />')}if((BrowserDetect.browser=="Chrome")){document.write('<link rel="stylesheet" type="text/css" href="/_css/chrome.css" />')}if((BrowserDetect.browser=="Safari")){document.write('<link rel="stylesheet" type="text/css" href="/_css/safari.css" />')}if((BrowserDetect.browser=="Firefox")){document.write('<link rel="stylesheet" type="text/css" href="/_css/ff.css" />')}if((BrowserDetect.browser=="Opera")){document.write('<link rel="stylesheet" type="text/css" href="/_css/opera.css" />')};
<!-- SWFobject -->
if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return"";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;
<!-- Smooth Scrolling -->
$(document).ready(function(){$("a.anchorLink").anchorAnimate()});jQuery.fn.anchorAnimate=function(a){a=jQuery.extend({speed:1100},a);return this.each(function(){var b=this;$(b).click(function(e){e.preventDefault();var d=window.location.href;var f=$(b).attr("href");var c=$(f).offset().top;$("html:not(:animated),body:not(:animated)").animate({scrollTop:c},a.speed,function(){window.location.hash=f});return false})})};
<!-- Slider -->
var featuredcontentglider={csszindex:100,ajaxloadingmsg:"<b>Fetching Content. Please wait...</b>",glide:function(c,d,h){var e=parseInt(d);if(e>=c.$contentdivs.length){alert("No content exists at page "+(e+1)+"! Loading 1st page instead.");e=0}var b=c.$contentdivs.eq(e);if(c.$togglerdiv.attr("lastselected")==null||parseInt(c.$togglerdiv.attr("lastselected"))!=e){var g=c.$toc.eq(e);c.$next.attr("loadpage",(e<c.$contentdivs.length-1)?e+1+"pg":0+"pg");c.$prev.attr("loadpage",(e==0)?c.$contentdivs.length-1+"pg":e-1+"pg");var a=(h=="previous")?-c.startpoint:c.startpoint;b.css(c.leftortop,a).css("zIndex",this.csszindex++);var f=(c.leftortop=="left")?{left:0}:{top:0};b.animate(f,c.speed);c.$toc.removeClass("selected");g.addClass("selected");c.$togglerdiv.attr("lastselected",e+"pg")}},getremotecontent:function(a){a.$glider.html(this.ajaxloadingmsg);$.ajax({url:a.remotecontent,error:function(b){a.$glider.html("Error fetching content.<br />Server Response: "+b.responseText)},success:function(b){a.$glider.html(b);featuredcontentglider.setuptoggler(a)}})},aligncontents:function(a){a.$contentdivs=$("#"+a.gliderid+" ."+a.contentclass);a.$contentdivs.css(a.leftortop,a.startpoint).css({height:a.$glider.height(),visibility:"visible"})},setuptoggler:function(b){this.aligncontents(b);b.$togglerdiv.hide();b.$toc.each(function(c){$(this).attr("pagenumber",c+"pg");if(c>(b.$contentdivs.length-1)){$(this).css({display:"none"})}});var a=$("#"+b.togglerid+" .next, #"+b.togglerid+" .prev");a.click(function(c){featuredcontentglider.glide(b,this.getAttribute("loadpage"),this.getAttribute("buttontype"));c.preventDefault()});b.$toc.click(function(c){featuredcontentglider.glide(b,this.getAttribute("pagenumber"));c.preventDefault()});b.$togglerdiv.fadeIn(1000,function(){featuredcontentglider.glide(b,b.selected);if(b.autorotate==true){b.stepcount=0;b.totalsteps=b.$contentdivs.length*b.autorotateconfig[1];featuredcontentglider.autorotate(b)}});b.$togglerdiv.click(function(){featuredcontentglider.cancelautorotate(b.togglerid)})},autorotate:function(a){var b=a.speed+a.autorotateconfig[0];window[a.togglerid+"timer"]=setInterval(function(){if(a.totalsteps>0&&a.stepcount>=a.totalsteps){clearInterval(window[a.togglerid+"timer"])}else{a.$next.click();a.stepcount++}},b)},cancelautorotate:function(a){if(window[a+"timer"]){clearInterval(window[a+"timer"])}},getCookie:function(a){var b=new RegExp(a+"=[^;]+","i");if(document.cookie.match(b)){return document.cookie.match(b)[0].split("=")[1]}return null},setCookie:function(a,b){document.cookie=a+"="+b},init:function(a){$(document).ready(function(){a.$glider=$("#"+a.gliderid);a.$togglerdiv=$("#"+a.togglerid);a.$toc=a.$togglerdiv.find(".toc");a.$next=a.$togglerdiv.find(".next");a.$prev=a.$togglerdiv.find(".prev");a.$prev.attr("buttontype","previous");var b=(a.persiststate)?featuredcontentglider.getCookie(a.gliderid):a.selected;a.selected=(isNaN(parseInt(b)))?a.selected:b;a.leftortop=(/up/i.test(a.direction))?"top":"left";a.heightorwidth=(/up/i.test(a.direction))?a.$glider.height():a.$glider.width();a.startpoint=(/^(left|up)/i.test(a.direction))?-a.heightorwidth:a.heightorwidth;if(typeof a.remotecontent!="undefined"&&a.remotecontent.length>0){featuredcontentglider.getremotecontent(a)}else{featuredcontentglider.setuptoggler(a)}$(window).bind("unload",function(){a.$togglerdiv.unbind("click");a.$toc.unbind("click");a.$next.unbind("click");a.$prev.unbind("click");if(a.persiststate){featuredcontentglider.setCookie(a.gliderid,a.$togglerdiv.attr("lastselected"))}a=null})})}};
<!-- Prettyphoto Lightbox -->
var $pp_pic_holder;var $ppt;(function($){$.fn.prettyPhoto=function(settings){var doresize=true;var percentBased=false;var imagesArray=[];var setPosition=0;var pp_contentHeight;var pp_contentWidth;var pp_containerHeight;var pp_containerWidth;var pp_type='image';var $caller;var $scrollPos=_getScroll();if($.browser.msie&&$.browser.version==6&&(settings.theme=='light_rounded'||settings.theme=='dark_rounded'||settings.theme=='dark_square')){settings.theme="light_square";} $(window).scroll(function(){$scrollPos=_getScroll();_centerPicture();});$(window).resize(function(){_centerPicture();_resizeOverlay();});$(document).keypress(function(e){switch(e.keyCode){case 37:if(setPosition==1)return;changePicture('previous');break;case 39:if(setPosition==setCount)return;changePicture('next');break;case 27:close();break;};});settings=jQuery.extend({animationSpeed:'normal',padding:40,opacity:0.80,showTitle:true,allowresize:true,counter_separator_label:'/',theme:'light_rounded',callback:function(){}},settings);$(this).each(function(){var hasTitle=false;var isSet=false;var setCount=0;var arrayPosition=0;imagesArray[imagesArray.length]=this;$(this).bind('click',function(){open(this);return false;});});function open(el){$caller=$(el);theRel=$caller.attr('rel');galleryRegExp=/\[(?:.*)\]/;theGallery=galleryRegExp.exec(theRel);isSet=false;setCount=0;_getFileType();for(i=0;i<imagesArray.length;i++){if($(imagesArray[i]).attr('rel').indexOf(theGallery)!=-1){setCount++;if(setCount>1)isSet=true;if($(imagesArray[i]).attr('href')==$caller.attr('href')){setPosition=setCount;arrayPosition=i;};};};_buildOverlay();$pp_pic_holder.find('p.currentTextHolder').text(setPosition+settings.counter_separator_label+setCount);_centerPicture();$('#pp_full_res').hide();$pp_pic_holder.find('.pp_loaderIcon').show();};showimage=function(width,height,containerWidth,containerHeight,contentHeight,contentWidth,resized){$('.pp_loaderIcon').hide();if($.browser.opera){windowHeight=window.innerHeight;windowWidth=window.innerWidth;}else{windowHeight=$(window).height();windowWidth=$(window).width();};$pp_pic_holder.find('.pp_content').animate({'height':contentHeight},settings.animationSpeed);projectedTop=$scrollPos['scrollTop']+((windowHeight/2)-(containerHeight/2));if(projectedTop<0)projectedTop=0+$pp_pic_holder.find('.ppt').height();$pp_pic_holder.animate({'top':projectedTop,'left':((windowWidth/2)-(containerWidth/2)),'width':containerWidth},settings.animationSpeed,function(){$pp_pic_holder.width(containerWidth);$pp_pic_holder.find('.pp_hoverContainer,#fullResImage').height(height).width(width);$pp_pic_holder.find('#pp_full_res').fadeIn(settings.animationSpeed,function(){$(this).find('object,embed').css('visibility','visible');});_showContent();if(resized)$('a.pp_expand,a.pp_contract').fadeIn(settings.animationSpeed);});};function _showContent(){if(isSet&&pp_type=="image"){$pp_pic_holder.find('.pp_hoverContainer').fadeIn(settings.animationSpeed);}else{$pp_pic_holder.find('.pp_hoverContainer').hide();} $pp_pic_holder.find('.pp_details').fadeIn(settings.animationSpeed);if(settings.showTitle&&hasTitle){$ppt.css({'top':$pp_pic_holder.offset().top-22,'left':$pp_pic_holder.offset().left+(settings.padding/2),'display':'none'});$ppt.fadeIn(settings.animationSpeed);};} function _hideContent(){$pp_pic_holder.find('.pp_hoverContainer,.pp_details').fadeOut(settings.animationSpeed);$pp_pic_holder.find('#pp_full_res object,#pp_full_res embed').css('visibility','hidden');$pp_pic_holder.find('#pp_full_res').fadeOut(settings.animationSpeed,function(){$('.pp_loaderIcon').show();_preload();});$ppt.fadeOut(settings.animationSpeed);} function changePicture(direction){if(direction=='previous'){arrayPosition--;setPosition--;}else{arrayPosition++;setPosition++;};if(!doresize)doresize=true;_hideContent();$('a.pp_expand,a.pp_contract').fadeOut(settings.animationSpeed,function(){$(this).removeClass('pp_contract').addClass('pp_expand');});};function close(){$pp_pic_holder.find('object,embed').css('visibility','hidden');$('div.pp_pic_holder,div.ppt').fadeOut(settings.animationSpeed);$('div.pp_overlay').fadeOut(settings.animationSpeed,function(){$('div.pp_overlay,div.pp_pic_holder,div.ppt').remove();if($.browser.msie&&$.browser.version==6){$('select').css('visibility','visible');};settings.callback();});doresize=true;};function _checkPosition(){if(setPosition==setCount){$pp_pic_holder.find('a.pp_next').css('visibility','hidden');$pp_pic_holder.find('a.pp_arrow_next').addClass('disabled').unbind('click');}else{$pp_pic_holder.find('a.pp_next').css('visibility','visible');$pp_pic_holder.find('a.pp_arrow_next.disabled').removeClass('disabled').bind('click',function(){changePicture('next');return false;});};if(setPosition==1){$pp_pic_holder.find('a.pp_previous').css('visibility','hidden');$pp_pic_holder.find('a.pp_arrow_previous').addClass('disabled').unbind('click');}else{$pp_pic_holder.find('a.pp_previous').css('visibility','visible');$pp_pic_holder.find('a.pp_arrow_previous.disabled').removeClass('disabled').bind('click',function(){changePicture('previous');return false;});};$pp_pic_holder.find('p.currentTextHolder').text(setPosition+settings.counter_separator_label+setCount);$caller=(isSet)?$(imagesArray[arrayPosition]):$caller;_getFileType();if($caller.attr('title')){$pp_pic_holder.find('.pp_description').show().html(unescape($caller.attr('title')));}else{$pp_pic_holder.find('.pp_description').hide().text('');};if($caller.find('img').attr('alt')&&settings.showTitle){hasTitle=true;$ppt.html(unescape($caller.find('img').attr('alt')));}else{hasTitle=false;};};function _fitToViewport(width,height){hasBeenResized=false;_getDimensions(width,height);imageWidth=width;imageHeight=height;windowHeight=$(window).height();windowWidth=$(window).width();if(((pp_containerWidth>windowWidth)||(pp_containerHeight>windowHeight))&&doresize&&settings.allowresize&&!percentBased){hasBeenResized=true;notFitting=true;while(notFitting){if((pp_containerWidth>windowWidth)){imageWidth=(windowWidth-200);imageHeight=(height/width)*imageWidth;}else if((pp_containerHeight>windowHeight)){imageHeight=(windowHeight-200);imageWidth=(width/height)*imageHeight;}else{notFitting=false;};pp_containerHeight=imageHeight;pp_containerWidth=imageWidth;};_getDimensions(imageWidth,imageHeight);};return{width:imageWidth,height:imageHeight,containerHeight:pp_containerHeight,containerWidth:pp_containerWidth,contentHeight:pp_contentHeight,contentWidth:pp_contentWidth,resized:hasBeenResized};};function _getDimensions(width,height){$pp_pic_holder.find('.pp_details').width(width).find('.pp_description').width(width-parseFloat($pp_pic_holder.find('a.pp_close').css('width')));pp_contentHeight=height+$pp_pic_holder.find('.pp_details').height()+parseFloat($pp_pic_holder.find('.pp_details').css('marginTop'))+parseFloat($pp_pic_holder.find('.pp_details').css('marginBottom'));pp_contentWidth=width;pp_containerHeight=pp_contentHeight+$pp_pic_holder.find('.ppt').height()+$pp_pic_holder.find('.pp_top').height()+$pp_pic_holder.find('.pp_bottom').height();pp_containerWidth=width+settings.padding;} function _getFileType(){if($caller.attr('href').match(/youtube\.com\/watch/i)){pp_type='youtube';}else if($caller.attr('href').indexOf('.mov')!=-1){pp_type='quicktime';}else if($caller.attr('href').indexOf('.swf')!=-1){pp_type='flash';}else if($caller.attr('href').indexOf('iframe')!=-1){pp_type='iframe'}else{pp_type='image';}} function _centerPicture(){if($pp_pic_holder){if($pp_pic_holder.size()==0){return;}}else{return;};if($.browser.opera){windowHeight=window.innerHeight;windowWidth=window.innerWidth;}else{windowHeight=$(window).height();windowWidth=$(window).width();};if(doresize){$pHeight=$pp_pic_holder.height();$pWidth=$pp_pic_holder.width();$tHeight=$ppt.height();projectedTop=(windowHeight/2)+$scrollPos['scrollTop']-($pHeight/2);if(projectedTop<0)projectedTop=0+$tHeight;$pp_pic_holder.css({'top':projectedTop,'left':(windowWidth/2)+$scrollPos['scrollLeft']-($pWidth/2)});$ppt.css({'top':projectedTop-$tHeight,'left':(windowWidth/2)+$scrollPos['scrollLeft']-($pWidth/2)+(settings.padding/2)});};};function _preload(){_checkPosition();if(pp_type=='image'){imgPreloader=new Image();nextImage=new Image();if(isSet&&setPosition>setCount)nextImage.src=$(imagesArray[arrayPosition+1]).attr('href');prevImage=new Image();if(isSet&&imagesArray[arrayPosition-1])prevImage.src=$(imagesArray[arrayPosition-1]).attr('href');pp_typeMarkup='<img id="fullResImage" src="jquery.prettyphoto.js" />';$pp_pic_holder.find('#pp_full_res')[0].innerHTML=pp_typeMarkup;$pp_pic_holder.find('.pp_content').css('overflow','hidden');$pp_pic_holder.find('#fullResImage').attr('src',$caller.attr('href'));imgPreloader.onload=function(){var correctSizes=_fitToViewport(imgPreloader.width,imgPreloader.height);imgPreloader.width=correctSizes['width'];imgPreloader.height=correctSizes['height'];showimage(imgPreloader.width,imgPreloader.height,correctSizes["containerWidth"],correctSizes["containerHeight"],correctSizes["contentHeight"],correctSizes["contentWidth"],correctSizes["resized"]);};imgPreloader.src=$caller.attr('href');}else{movie_width=(parseFloat(grab_param('width',$caller.attr('href'))))?grab_param('width',$caller.attr('href')):425;movie_height=(parseFloat(grab_param('height',$caller.attr('href'))))?grab_param('height',$caller.attr('href')):344;if(movie_width.indexOf('%')!=-1||movie_height.indexOf('%')!=-1){movie_height=($(window).height()*parseFloat(movie_height)/100)-100;movie_width=($(window).width()*parseFloat(movie_width)/100)-100;parsentBased=true;}else{movie_height=parseFloat(movie_height);movie_width=parseFloat(movie_width);} if(pp_type=='quicktime'){movie_height+=13;} correctSizes=_fitToViewport(movie_width,movie_height);if(pp_type=='youtube'){pp_typeMarkup='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+correctSizes['width']+'" height="'+correctSizes['height']+'"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://www.youtube.com/v/'+grab_param('v',$caller.attr('href'))+'" /><embed src="http://www.youtube.com/v/'+grab_param('v',$caller.attr('href'))+'" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="'+correctSizes['width']+'" height="'+correctSizes['height']+'"></embed></object>';}else if(pp_type=='quicktime'){pp_typeMarkup='<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="'+correctSizes['height']+'" width="'+correctSizes['width']+'"><param name="src" value="'+$caller.attr('href')+'"><param name="autoplay" value="true"><param name="type" value="video/quicktime"><embed src="'+$caller.attr('href')+'" height="'+correctSizes['height']+'" width="'+correctSizes['width']+'" autoplay="true" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>';}else if(pp_type=='flash'){flash_vars=$caller.attr('href');flash_vars=flash_vars.substring($caller.attr('href').indexOf('flashvars')+10,$caller.attr('href').length);filename=$caller.attr('href');filename=filename.substring(0,filename.indexOf('?'));pp_typeMarkup='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+correctSizes['width']+'" height="'+correctSizes['height']+'"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="'+filename+'?'+flash_vars+'" /><embed src="'+filename+'?'+flash_vars+'" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="'+correctSizes['width']+'" height="'+correctSizes['height']+'"></embed></object>';}else if(pp_type=='iframe'){movie_url=$caller.attr('href');movie_url=movie_url.substr(0,movie_url.indexOf('?'));pp_typeMarkup='<iframe src ="'+movie_url+'" width="'+(correctSizes['width']-10)+'" height="'+(correctSizes['height']-10)+'" frameborder="no"></iframe>';} $pp_pic_holder.find('#pp_full_res')[0].innerHTML=pp_typeMarkup;showimage(correctSizes['width'],correctSizes['height'],correctSizes["containerWidth"],correctSizes["containerHeight"],correctSizes["contentHeight"],correctSizes["contentWidth"],correctSizes["resized"]);}};function _getScroll(){if(self.pageYOffset){scrollTop=self.pageYOffset;scrollLeft=self.pageXOffset;}else if(document.documentElement&&document.documentElement.scrollTop){scrollTop=document.documentElement.scrollTop;scrollLeft=document.documentElement.scrollLeft;}else if(document.body){scrollTop=document.body.scrollTop;scrollLeft=document.body.scrollLeft;} return{scrollTop:scrollTop,scrollLeft:scrollLeft};};function _resizeOverlay(){$('div.pp_overlay').css({'height':$(document).height(),'width':$(window).width()});};function _buildOverlay(){toInject="";toInject+="<div class='pp_overlay'></div>";if(pp_type=='image'){pp_typeMarkup='<img id="fullResImage" src="jquery.prettyphoto.js" />';}else{pp_typeMarkup='';} toInject+='<div class="pp_pic_holder"><div class="pp_top"><div class="pp_left"></div><div class="pp_middle"></div><div class="pp_right"></div></div><div class="pp_content"><a href="#" class="pp_expand" title="Expand the image">Expand</a><div class="pp_loaderIcon"></div><div class="pp_hoverContainer"><a class="pp_next" href="#">next</a><a class="pp_previous" href="#">previous</a></div><div id="pp_full_res">'+pp_typeMarkup+'</div><div class="pp_details clearfix"><a class="pp_close" href="#">Close</a><p class="pp_description"></p><div class="pp_nav"><a href="#" class="pp_arrow_previous">Previous</a><p class="currentTextHolder">0'+settings.counter_separator_label+'0</p><a href="#" class="pp_arrow_next">Next</a></div></div></div><div class="pp_bottom"><div class="pp_left"></div><div class="pp_middle"></div><div class="pp_right"></div></div></div>';toInject+='<div class="ppt"></div>';$('body').append(toInject);$pp_pic_holder=$('.pp_pic_holder');$ppt=$('.ppt');$('div.pp_overlay').css('height',$(document).height()).bind('click',function(){close();});$pp_pic_holder.css({'opacity':0}).addClass(settings.theme);$('a.pp_close').bind('click',function(){close();return false;});$('a.pp_expand').bind('click',function(){$this=$(this);if($this.hasClass('pp_expand')){$this.removeClass('pp_expand').addClass('pp_contract');doresize=false;}else{$this.removeClass('pp_contract').addClass('pp_expand');doresize=true;};_hideContent();$pp_pic_holder.find('.pp_hoverContainer, #pp_full_res, .pp_details').fadeOut(settings.animationSpeed,function(){_preload();});return false;});$pp_pic_holder.find('.pp_previous, .pp_arrow_previous').bind('click',function(){changePicture('previous');return false;});$pp_pic_holder.find('.pp_next, .pp_arrow_next').bind('click',function(){changePicture('next');return false;});$pp_pic_holder.find('.pp_hoverContainer').css({'margin-left':settings.padding/2});if(!isSet){$pp_pic_holder.find('.pp_hoverContainer,.pp_nav').hide();};if($.browser.msie&&$.browser.version==6){$('body').addClass('ie6');$('select').css('visibility','hidden');};$('div.pp_overlay').css('opacity',0).fadeTo(settings.animationSpeed,settings.opacity,function(){$pp_pic_holder.css('opacity',0).fadeIn(settings.animationSpeed,function(){$pp_pic_holder.attr('style','left:'+$pp_pic_holder.css('left')+';top:'+$pp_pic_holder.css('top')+';');_preload();});});};};function grab_param(name,url){name=name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regexS="[\\?&]"+name+"=([^&#]*)";var regex=new RegExp(regexS);var results=regex.exec(url);if(results==null) return"";else return results[1];}})(jQuery);
<!-- ddacordion -->
var ddaccordion={contentclassname:{},expandone:function(b,a){this.toggleone(b,a,"expand")},collapseone:function(b,a){this.toggleone(b,a,"collapse")},expandall:function(c){var b=jQuery;var a=b("."+c);b("."+this.contentclassname[c]+":hidden").each(function(){a.eq(parseInt(b(this).attr("contentindex"))).trigger("evt_accordion")})},collapseall:function(c){var b=jQuery;var a=b("."+c);b("."+this.contentclassname[c]+":visible").each(function(){a.eq(parseInt(b(this).attr("contentindex"))).trigger("evt_accordion")})},toggleone:function(f,c,a){var d=jQuery;var e=d("."+f).eq(c);var b=d("."+this.contentclassname[f]).eq(c);if(typeof a=="undefined"||a=="expand"&&b.is(":hidden")||a=="collapse"&&b.is(":visible")){e.trigger("evt_accordion")}},expandit:function(e,a,c,d,b){a.slideDown(c.animatespeed,function(){c.onopenclose(e.get(0),parseInt(e.attr("headerindex")),a.css("display"),d);if(c.postreveal=="gotourl"&&b){var f=(e.is("a"))?e.get(0):e.find("a:eq(0)").get(0);if(f){setTimeout(function(){location=f.href},200)}}});this.transformHeader(e,c,"expand")},collapseit:function(d,a,c,b){a.slideUp(c.animatespeed,function(){c.onopenclose(d.get(0),parseInt(d.attr("headerindex")),a.css("display"),b)});this.transformHeader(d,c,"collapse")},transformHeader:function(c,a,b){c.addClass((b=="expand")?a.cssclass.expand:a.cssclass.collapse).removeClass((b=="expand")?a.cssclass.collapse:a.cssclass.expand);if(a.htmlsetting.location=="src"){c=(c.is("img"))?c:c.find("img").eq(0);c.attr("src",(b=="expand")?a.htmlsetting.expand:a.htmlsetting.collapse)}else{if(a.htmlsetting.location=="prefix"){c.find(".accordprefix").html((b=="expand")?a.htmlsetting.expand:a.htmlsetting.collapse)}else{if(a.htmlsetting.location=="suffix"){c.find(".accordsuffix").html((b=="expand")?a.htmlsetting.expand:a.htmlsetting.collapse)}}}},urlparamselect:function(b){var a=window.location.search.match(new RegExp(b+"=((\\d+)(,(\\d+))*)","i"));if(a!=null){a=RegExp.$1.split(",")}return a},getCookie:function(a){var b=new RegExp(a+"=[^;]+","i");if(document.cookie.match(b)){return document.cookie.match(b)[0].split("=")[1]}return null},setCookie:function(a,b){document.cookie=a+"="+b+"; path=/"},init:function(a){document.write('<style type="text/css">\n');document.write("."+a.contentclass+"{display: none}\n");document.write("</style>");jQuery(document).ready(function(f){ddaccordion.urlparamselect(a.headerclass);var b=ddaccordion.getCookie(a.headerclass);ddaccordion.contentclassname[a.headerclass]=a.contentclass;a.cssclass={collapse:a.toggleclass[0],expand:a.toggleclass[1]};a.revealtype=a.revealtype.replace(/mouseover/i,"mouseenter");if(a.revealtype=="clickgo"){a.postreveal="gotourl";a.revealtype="click"}if(typeof a.togglehtml=="undefined"){a.htmlsetting={location:"none"}}else{a.htmlsetting={location:a.togglehtml[0],collapse:a.togglehtml[1],expand:a.togglehtml[2]}}a.oninit=(typeof a.oninit=="undefined")?function(){}:a.oninit;a.onopenclose=(typeof a.onopenclose=="undefined")?function(){}:a.onopenclose;var c={};var e=ddaccordion.urlparamselect(a.headerclass)||((a.persiststate&&b!=null)?b:a.defaultexpanded);if(typeof e=="string"){e=e.replace(/c/ig,"").split(",")}var d=f("."+a.contentclass);if(e.length==1&&e[0]=="-1"){e=[]}if(a.collapseprev&&e.length>1){e=[e.pop()]}if(a.onemustopen&&e.length==0){e=[0]}f("."+a.headerclass).each(function(h){if(/(prefix)|(suffix)/i.test(a.htmlsetting.location)&&f(this).html()!=""){f('<span class="accordprefix"></span>').prependTo(this);f('<span class="accordsuffix"></span>').appendTo(this)}f(this).attr("headerindex",h+"h");d.eq(h).attr("contentindex",h+"c");var g=d.eq(h);var i=(typeof e[0]=="number")?h:h+"";if(jQuery.inArray(i,e)!=-1){if(a.animatedefault==false){g.show()}ddaccordion.expandit(f(this),g,a,false);c={$header:f(this),$content:g}}else{g.hide();a.onopenclose(f(this).get(0),parseInt(f(this).attr("headerindex")),g.css("display"),false);ddaccordion.transformHeader(f(this),a,"collapse")}});f("."+a.headerclass).bind("evt_accordion",function(i,h){var g=d.eq(parseInt(f(this).attr("headerindex")));if(g.css("display")=="none"){ddaccordion.expandit(f(this),g,a,true,h);if(a.collapseprev&&c.$header&&f(this).get(0)!=c.$header.get(0)){ddaccordion.collapseit(c.$header,c.$content,a,true)}c={$header:f(this),$content:g}}else{if(!a.onemustopen||a.onemustopen&&c.$header&&f(this).get(0)!=c.$header.get(0)){ddaccordion.collapseit(f(this),g,a,true)}}});f("."+a.headerclass).bind(a.revealtype,function(){if(a.revealtype=="mouseenter"){clearTimeout(a.revealdelay);var g=parseInt(f(this).attr("headerindex"));a.revealdelay=setTimeout(function(){ddaccordion.expandone(a.headerclass,g)},a.mouseoverdelay||0)}else{f(this).trigger("evt_accordion",[true]);return false}});f("."+a.headerclass).bind("mouseleave",function(){clearTimeout(a.revealdelay)});a.oninit(f("."+a.headerclass).get(),e);f(window).bind("unload",function(){f("."+a.headerclass).unbind();var g=[];f("."+a.contentclass+":visible").each(function(h){g.push(f(this).attr("contentindex"))});if(a.persiststate==true){g=(g.length==0)?"-1c":g;ddaccordion.setCookie(a.headerclass,g)}})})}};
<!-- ddacordion-init -->
ddaccordion.init({headerclass:"smallheader",contentclass:"open_box",revealtype:"click",mouseoverdelay:200,collapseprev:true,defaultexpanded:[],onemustopen:false,animatedefault:false,persiststate:false,toggleclass:["closedlanguage","openlanguage"],animatespeed:"fast",oninit:function(expandedindices){},onopenclose:function(header,index,state,isuseractivated){}});
<!-- Tooltip -->
;(function($){var helper={},current,title,tID,IE=$.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),track=false;$.tooltip={blocked:false,defaults:{delay:200,fade:false,showURL:true,extraClass:"",top:15,left:15,id:"tooltip"},block:function(){$.tooltip.blocked=!$.tooltip.blocked;}};$.fn.extend({tooltip:function(settings){settings=$.extend({},$.tooltip.defaults,settings);createHelper(settings);return this.each(function(){$.data(this,"tooltip",settings);this.tOpacity=helper.parent.css("opacity");this.tooltipText=this.title;$(this).removeAttr("title");this.alt="";}).mouseover(save).mouseout(hide).click(hide);},fixPNG:IE?function(){return this.each(function(){var image=$(this).css('backgroundImage');if(image.match(/^url\(["']?(.*\.png)["']?\)$/i)){image=RegExp.$1;$(this).css({'backgroundImage':'none','filter':"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+image+"')"}).each(function(){var position=$(this).css('position');if(position!='absolute'&&position!='relative')$(this).css('position','relative');});}});}:function(){return this;},unfixPNG:IE?function(){return this.each(function(){$(this).css({'filter':'',backgroundImage:''});});}:function(){return this;},hideWhenEmpty:function(){return this.each(function(){$(this)[$(this).html()?"show":"hide"]();});},url:function(){return this.attr('href')||this.attr('src');}});function createHelper(settings){if(helper.parent)return;helper.parent=$('<div id="'+settings.id+'"><h3></h3><div class="body"></div><div class="url"></div></div>').appendTo(document.body).hide();if($.fn.bgiframe)helper.parent.bgiframe();helper.title=$('h3',helper.parent);helper.body=$('div.body',helper.parent);helper.url=$('div.url',helper.parent);}function settings(element){return $.data(element,"tooltip");}function handle(event){if(settings(this).delay)tID=setTimeout(show,settings(this).delay);else show();track=!!settings(this).track;$(document.body).bind('mousemove',update);update(event);}function save(){if($.tooltip.blocked||this==current||(!this.tooltipText&&!settings(this).bodyHandler))return;current=this;title=this.tooltipText;if(settings(this).bodyHandler){helper.title.hide();var bodyContent=settings(this).bodyHandler.call(this);if(bodyContent.nodeType||bodyContent.jquery){helper.body.empty().append(bodyContent)}else{helper.body.html(bodyContent);}helper.body.show();}else if(settings(this).showBody){var parts=title.split(settings(this).showBody);helper.title.html(parts.shift()).show();helper.body.empty();for(var i=0,part;(part=parts[i]);i++){if(i>0)helper.body.append("<br/>");helper.body.append(part);}helper.body.hideWhenEmpty();}else{helper.title.html(title).show();helper.body.hide();}if(settings(this).showURL&&$(this).url())helper.url.html($(this).url().replace('http://','')).show();else helper.url.hide();helper.parent.addClass(settings(this).extraClass);if(settings(this).fixPNG)helper.parent.fixPNG();handle.apply(this,arguments);}function show(){tID=null;if((!IE||!$.fn.bgiframe)&&settings(current).fade){if(helper.parent.is(":animated"))helper.parent.stop().show().fadeTo(settings(current).fade,current.tOpacity);else helper.parent.is(':visible')?helper.parent.fadeTo(settings(current).fade,current.tOpacity):helper.parent.fadeIn(settings(current).fade);}else{helper.parent.show();}update();}function update(event){if($.tooltip.blocked)return;if(event&&event.target.tagName=="OPTION"){return;}if(!track&&helper.parent.is(":visible")){$(document.body).unbind('mousemove',update)}if(current==null){$(document.body).unbind('mousemove',update);return;}helper.parent.removeClass("viewport-right").removeClass("viewport-bottom");var left=helper.parent[0].offsetLeft;var top=helper.parent[0].offsetTop;if(event){left=event.pageX+settings(current).left;top=event.pageY+settings(current).top;var right='auto';if(settings(current).positionLeft){right=$(window).width()-left;left='auto';}helper.parent.css({left:left,right:right,top:top});}var v=viewport(),h=helper.parent[0];if(v.x+v.cx<h.offsetLeft+h.offsetWidth){left-=h.offsetWidth+20+settings(current).left;helper.parent.css({left:left+'px'}).addClass("viewport-right");}if(v.y+v.cy<h.offsetTop+h.offsetHeight){top-=h.offsetHeight+20+settings(current).top;helper.parent.css({top:top+'px'}).addClass("viewport-bottom");}}function viewport(){return{x:$(window).scrollLeft(),y:$(window).scrollTop(),cx:$(window).width(),cy:$(window).height()};}function hide(event){if($.tooltip.blocked)return;if(tID)clearTimeout(tID);current=null;var tsettings=settings(this);function complete(){helper.parent.removeClass(tsettings.extraClass).hide().css("opacity","");}if((!IE||!$.fn.bgiframe)&&tsettings.fade){if(helper.parent.is(':animated'))helper.parent.stop().fadeTo(tsettings.fade,0,complete);else helper.parent.stop().fadeOut(tsettings.fade,complete);}else complete();if(settings(this).fixPNG)helper.parent.unfixPNG();}})(jQuery);
<!-- Form validation -->
$(document).ready(function(){$("[class^=validate]").validationEngine({success:false,failure:function(){}})});jQuery.fn.validationEngine=function(settings){if($.validationEngineLanguage){allRules=$.validationEngineLanguage.allRules}else{allRules={required:{regex:"none",alertText:"* This field is required",alertTextCheckboxMultiple:"* Please select an option",alertTextCheckboxe:"* This checkbox is required"},length:{regex:"none",alertText:"*Between ",alertText2:" and ",alertText3:" characters allowed"},minCheckbox:{regex:"none",alertText:"* Checks allowed Exceeded"},confirm:{regex:"none",alertText:"* Your field is not matching"},samesame:{regex:"none",alertText:"* Please correct this field"},telephone:{regex:"/^[0-9+ ]+$/",alertText:"* Invalid phone number"},email:{regex:"/^[a-zA-Z0-9_.-]+@([a-zA-Z0-9-]+.)+[a-zA-Z0-9]{2,4}$/",alertText:"* Invalid email address"},date:{regex:"/^[0-9]{4}-[0-9]{1,2}-[0-9]{1,2}$/",alertText:"* Invalid date, must be in YYYY-MM-DD format"},onlyNumber:{regex:"/^[0-9 ]+$/",alertText:"* Numbers only"},noSpecialCaracters:{regex:"/^[0-9a-zA-Z]+$/",alertText:"* No special caracters allowed"},onlyLetter:{regex:"/^[a-zA-Z ']+$/",alertText:"* Letters only"}}}settings=jQuery.extend({allrules:allRules,success:false,failure:function(){}},settings);$("form").bind("submit",function(caller){if(submitValidation(this)==false){if(settings.success){settings.success&&settings.success();return false}}else{settings.failure&&settings.failure();return false}});$(this).not("[type=checkbox]").bind("blur",function(caller){loadValidation(this)});$(this+"[type=checkbox]").bind("click",function(caller){loadValidation(this)});$(this).bind("focus",function(caller){closePrompt(this)});$("a.clearvalid").bind("click",function(){$("div.formError").remove();return false});var buildPrompt=function(caller,promptText){var divFormError=document.createElement("div");var formErrorContent=document.createElement("div");var arrow=document.createElement("div");$(divFormError).addClass("formError");$(divFormError).addClass($(caller).attr("name"));$(formErrorContent).addClass("formErrorContent");$(arrow).addClass("formErrorArrow");$("body").append(divFormError);$(divFormError).append(arrow);$(divFormError).append(formErrorContent);$(arrow).html('<div class="line10"></div><div class="line9"></div><div class="line8"></div><div class="line7"></div><div class="line6"></div><div class="line5"></div><div class="line4"></div><div class="line3"></div><div class="line2"></div><div class="line1"></div>');$(formErrorContent).html(promptText);callerTopPosition=$(caller).offset().top;callerleftPosition=$(caller).offset().left;callerWidth=$(caller).width();callerHeight=$(caller).height();inputHeight=$(divFormError).height();callerleftPosition=callerleftPosition+callerWidth-30;callerTopPosition=callerTopPosition-inputHeight-10;$(divFormError).css({top:callerTopPosition,left:callerleftPosition,opacity:0});$(divFormError).fadeTo("fast",0.8)};var updatePromptText=function(caller,promptText){updateThisPrompt=$(caller).attr("name");$("."+updateThisPrompt).find(".formErrorContent").html(promptText);callerTopPosition=$(caller).offset().top;inputHeight=$("."+updateThisPrompt).height();callerTopPosition=callerTopPosition-inputHeight-10;$("."+updateThisPrompt).animate({top:callerTopPosition})};var loadValidation=function(caller){rulesParsing=$(caller).attr("class");rulesRegExp=/\[(.*)\]/;getRules=rulesRegExp.exec(rulesParsing);str=getRules[1];pattern=/\W+/;result=str.split(pattern);var validateCalll=validateCall(caller,result);return validateCalll};var validateCall=function(caller,rules){var promptText="";var prompt=$(caller).attr("name");var caller=caller;isError=false;callerType=$(caller).attr("type");for(i=0;i<rules.length;i++){switch(rules[i]){case"optional":if(!$(caller).val()){closePrompt(caller);return isError}break;case"required":_required(caller,rules);break;case"custom":_customRegex(caller,rules,i);break;case"length":_length(caller,rules,i);break;case"minCheckbox":_minCheckbox(caller,rules,i);break;case"confirm":_confirm(caller,rules,i);break;case"samesame":_samesame(caller,rules,i);break;default:}}if(isError==true){if($("input[name="+prompt+"]").size()>1&&callerType=="radio"){caller=$("input[name="+prompt+"]:first")}($("."+prompt).size()==0)?buildPrompt(caller,promptText):updatePromptText(caller,promptText)}else{closePrompt(caller)}function _required(caller,rules){callerType=$(caller).attr("type");if(callerType=="text"||callerType=="password"||callerType=="textarea"){if(!$(caller).val()){isError=true;promptText+=settings.allrules[rules[i]].alertText+"<br />"}}if(callerType=="radio"||callerType=="checkbox"){callerName=$(caller).attr("name");if($("input[name="+callerName+"]:checked").size()==0){isError=true;if($("input[name="+callerName+"]").size()==1){promptText+=settings.allrules[rules[i]].alertTextCheckboxe+"<br />"}else{promptText+=settings.allrules[rules[i]].alertTextCheckboxMultiple+"<br />"}}}if(callerType=="select-one"){callerName=$(caller).attr("name");if(!$("select[name="+callerName+"]").val()){isError=true;promptText+=settings.allrules[rules[i]].alertText+"<br />"}}if(callerType=="select-multiple"){callerName=$(caller).attr("id");if(!$("#"+callerName).val()){isError=true;promptText+=settings.allrules[rules[i]].alertText+"<br />"}}}function _customRegex(caller,rules,position){customRule=rules[position+1];pattern=eval(settings.allrules[customRule].regex);if(!pattern.test($(caller).attr("value"))){isError=true;promptText+=settings.allrules[customRule].alertText+"<br />"}}function _confirm(caller,rules,position){confirmField=rules[position+1];if($(caller).attr("value")!=$("#"+confirmField).attr("value")){isError=true;promptText+=settings.allrules.confirm.alertText+"<br />"}}function _samesame(caller,rules,position){confirmField=rules[position+1];if($(caller).attr("value")==$("#"+confirmField).attr("value")){isError=true;promptText+=settings.allrules.samesame.alertText+"<br />"}}function _length(caller,rules,position){startLength=eval(rules[position+1]);endLength=eval(rules[position+2]);feildLength=$(caller).attr("value").length;if(feildLength<startLength||feildLength>endLength){isError=true;promptText+=settings.allrules.length.alertText+startLength+settings.allrules.length.alertText2+endLength+settings.allrules.length.alertText3+"<br />"}}function _minCheckbox(caller,rules,position){nbCheck=eval(rules[position+1]);groupname=$(caller).attr("name");groupSize=$("input[name="+groupname+"]:checked").size();if(groupSize>nbCheck){isError=true;promptText+=settings.allrules.minCheckbox.alertText+"<br />"}}return(isError)?isError:false};var closePrompt=function(caller){closingPrompt=$(caller).attr("name");$("."+closingPrompt).fadeTo("fast",0,function(){$("."+closingPrompt).remove()})};var submitValidation=function(caller){var stopForm=false;$(caller).find(".formError").remove();var toValidateSize=$(caller).find("[class^=validate]").size();$(caller).find("[class^=validate]").each(function(){var validationPass=loadValidation(this);return(validationPass)?stopForm=true:""});if(stopForm){destination=$(".formError:first").offset().top;return true}else{return false}}};
<!-- Dropdownmenu -->
$(function(){$("ul.dropdown li").hover(function(){$(this).addClass("hover");$('ul:first',this).css('visibility','visible');},function(){$(this).removeClass("hover");$('ul:first',this).css('visibility','hidden');});$("ul.dropdown li ul li:has(ul)").find("a:first").append(" » ");});
<!-- Div Swap -->
function menuexpand1(){document.getElementById('subscr').style.display='block';document.getElementById('unsubscr').style.display='none';}
function menuexpand2(){document.getElementById('subscr').style.display='none';document.getElementById('unsubscr').style.display='block';}
// -->