﻿jQuery.noConflict();jQuery(document).ready(function(){if(!online){var a=navigator.userAgent.toLowerCase().indexOf("win64; x64")!=-1?true:false;jQuery.browser.chrome=/chrome/.test(navigator.userAgent.toLowerCase());if(jQuery.browser.chrome)localmessage("Google Chrome");if(a)localmessage("Internet Explorer 64 bits")}hideContent=function(a,b){if(b==null)jQuery("div.dynamicContent").fadeOut(1e3,function(){showContent(a);playSound(0)});else jQuery("div.dynamicContent").slideUp(1e3,function(){showContent(a);playSound(0)})};showContent=function(a){jQuery.ajax({type:"GET",url:a,dataType:"html",success:function(a){jQuery("div.dynamicContent").html(a);jQuery("div.dynamicContent").slideDown(1e3)},error:function(){alert("Page "+a+" not found")}})};if(jQuery(document).getUrlParam("page")!=null)hideContent(jQuery(document).getUrlParam("page"),"slideUp");else showContent("_home.htm")});function localmessage(a){alert("You use "+a+" browser. Due to "+a+" known bugs, the template won't work locally on your computer and you won't be able to customize it locally.\n  Note that the template will work as expected when you'll put it online. \n We encourage you to use Firefox Browser to customize template locally.");if(confirm("Download Firefox Browser (free)"))document.location.href="http://www.mozilla.com/firefox/"}function sendToASUnselectButton(a){thisMovie(a).sendToASUnselectButton("")}function thisMovie(a){if(navigator.appName.indexOf("Microsoft")!=-1)return window[a];else return document[a]}var requiredMajorVersion=9,requiredMinorVersion=9,requiredRevision=0,selected_button="",isIE=navigator.appVersion.indexOf("MSIE")!=-1?true:false,online=(window.location+"").substring(0,4).toLowerCase()=="http"?true:false;function myButton(b,a){if(!online&&!isIE)document.write('\t<DIV ID="flashMovie'+(anim_ids+1)+'" STYLE="width: 200; height: 31; z-index: 100;" onClick="showPage(\''+a+"',"+anim_ids+1+')">');AC_FL_RunContent("codebase","http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0","width","200","height","31","src","flash/button","quality","high","pluginspage","http://www.macromedia.com/go/getflashplayer","movie","flash/button","flashvars","custom_xml_url=button.xml&item_text="+b+"&item_url="+a+"&button_id="+(anim_ids+1)+"&isIE="+isIE,"scale","noScale","wmode","transparent");if(!online&&!isIE)document.write("</DIV>")}function myFlashHeader(c,f,e,d,a,g,b){if(b==null)b="Window";if(window.document.getElementById(a))window.document.getElementById(a).innerHTML=AC_FL_RunContentDiv("codebase","http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0","width",f,"height",e,"src",c,"quality","high","pluginspage","http://www.macromedia.com/go/getflashplayer","movie",c,"flashvars","custom_xml_url="+g,"bgcolor",d,"allowScriptAccess","sameDomain","scale","noScale","wmode",b);else alert("Div '"+a+"' not found ")}function myFlashGallery(c,f,e,d,a,b){if(window.document.getElementById(a)){if(b==null)b="gallery.xml";window.document.getElementById(a).innerHTML=AC_FL_RunContentDiv("codebase","http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0","width",f,"height",e,"src",c,"quality","high","pluginspage","http://www.macromedia.com/go/getflashplayer","movie",c,"bgcolor",d,"allowScriptAccess","sameDomain","allowFullScreen","true","FlashVars","xmlFile="+b)}else alert("Div '"+a+"' not found ")}function showPage(a,b){if(a.substring(0,4).toLowerCase()=="http"){window.open(a,"_blank");return}hideContent(a,"slideUp");if(selected_button!=""&&b!=selected_button)sendToASUnselectButton("anim_"+selected_button);selected_button=b}jQuery.fn.extend({getUrlParam:function(d){d=escape(unescape(d));var c=[],a=null;if(jQuery(this).attr("nodeName")=="#document"){if(window.location.search.search(d)>-1)a=window.location.search.substr(1,window.location.search.length).split("&")}else if(jQuery(this).attr("src")!="undefined"){var b=jQuery(this).attr("src");if(b.indexOf("?")>-1){var f=b.substr(b.indexOf("?")+1);a=f.split("&")}}else if(jQuery(this).attr("href")!="undefined"){var b=jQuery(this).attr("href");if(b.indexOf("?")>-1){var f=b.substr(b.indexOf("?")+1);a=f.split("&")}}else return null;if(a==null)return null;for(var e=0;e<a.length;e++)if(escape(unescape(a[e].split("=")[0]))==d)c.push(a[e].split("=")[1]);if(c.length==0)return null;else if(c.length==1)return c[0];else return c}})
