﻿/*22-07-2010 10:25*/
/*
	/JavaScript/jquery.cookie.js
	/JavaScript/jquery.url.js
	/JavaScript/jquery.navigation.js
	/JavaScript/jquery.rowheight.js
	/JavaScript/jquery.updateable.js
	/JavaScript/jquery.togglebox.js
	/JavaScript/jquery.rounded.js
	/JavaScript/jquery.ajaxload.js
	/JavaScript/jquery.popup.js
	/JavaScript/global.js
*/
jQuery.cookie=function(a,b,c){if(typeof b!="undefined"){c=c||{};if(b===null){b="";c.expires=-1}var d="";if(c.expires&&(typeof c.expires=="number"||c.expires.toUTCString)){if(typeof c.expires=="number"){d=new Date;d.setTime(d.getTime()+c.expires*24*60*60*1E3)}else d=c.expires;d="; expires="+d.toUTCString()}var e=c.path?"; path="+c.path:"",g=c.domain?"; domain="+c.domain:"";c=c.secure?"; secure":"";document.cookie=[a,"=",encodeURIComponent(b),d,e,g,c].join("")}else{b=null;if(document.cookie&&document.cookie!=
""){c=document.cookie.split(";");for(d=0;d<c.length;d++){e=jQuery.trim(c[d]);if(e.substring(0,a.length+1)==a+"="){b=decodeURIComponent(e.substring(a.length+1));break}}}return b}};
(function(a){a.url={urlObject:{scheme:"",host:"",port:"",user:"",pass:"",path:"",query:{},fragment:""},parser:{regex:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,keys:{source:0,protocol:1,authority:2,userInfo:3,user:4,password:5,host:6,port:7,relative:8,path:9,directory:10,file:11,query:12,anchor:13}},parsed:false,source:"",setUrl:function(b){b=b||"";a.url.source=
b;a.url.parsed=false;a.url.parseUrl(b);return a.url},reset:function(){return a.url.setUrl(window.location.href)},go:function(){window.location.href=a.url.toString()},parseUrl:function(b){if(b=a.url.parser.regex.exec(b||window.location.href)){a.url.urlObject.scheme=b[a.url.parser.keys.protocol]||"http";a.url.urlObject.host=b[a.url.parser.keys.host];a.url.urlObject.port=b[a.url.parser.keys.port];a.url.urlObject.user=b[a.url.parser.keys.user];a.url.urlObject.pass=b[a.url.parser.keys.password];a.url.urlObject.path=
b[a.url.parser.keys.path]||"/";a.url.urlObject.query=a.url.parseQueryString(b[a.url.parser.keys.query]);a.url.urlObject.fragment=b[a.url.parser.keys.anchor]&&b[a.url.parser.keys.anchor].substr(0,1)=="#"?b[a.url.parser.keys.anchor].substr(1):b[a.url.parser.keys.anchor];a.url.source=b[a.url.parser.source];a.url.parsed=true}return a.url},getUsername:function(){return""},getPassword:function(){return""},attr:function(){var b=null,c=null;if(arguments.length==1)if(typeof arguments[0]=="object"){a.each(arguments[0],
function(d,e){if(d=="query")throw Error("Cannot set query part, use `param`");else a.url.urlObject[d]=e});c=a.url}else{b=arguments[0];c=b=="query"?a.url.createQueryString():a.url.urlObject[b]}else if(arguments.length==2){b=arguments[0];c=arguments[1];if(b=="query")throw Error("Cannot set query part, use `param`");else{a.url.urlObject[b]=c;c=a.url}}return c},param:function(){var b=null,c=null;if(arguments.length==1)if(typeof arguments[0]=="object"){a.each(arguments[0],function(d,e){a.url.urlObject.query[d]=
e});c=a.url}else{b=arguments[0];c=a.url.urlObject.query[b]}else if(arguments.length==2){b=arguments[0];c=arguments[1];a.url.urlObject.query[b]=c;c=a.url}return c},hash:function(b){return a.url.fragment(b)},fragment:function(b){if(b){a.url.urlObject.fragment=b;return a.url}return a.url.urlObject.fragment},parseQueryString:function(b){b=b||"";var c={};if(b){b=b.substr(0,1)=="?"?b.substring(1):b;b=b.split("&");a(b).each(function(d,e){var g=e.split("="),f=g.shift();g=g.shift();c[f]=g})}return c},createQueryString:function(){var b=
"";a.each(a.url.urlObject.query,function(c,d){b+=(b!=""?"&":"?")+c+"="+d});return b},toString:function(){return a.url.urlObject.scheme+"://"+a.url.urlObject.host+(a.url.urlObject.port?":"+a.url.urlObject.port:"")+a.url.urlObject.path+a.url.createQueryString()+(a.url.urlObject.fragment?"#"+a.url.urlObject.fragment:"")}};a.url.reset()})(jQuery);
(function(a){a().ready(function(){var b=a("#SectionMenu");b.find("ul").hide();b.children().each(function(){var c=a(this),d=c.find("ul"),e=c.parents(".column-row");if(d.length>0){c.find("a.buttonBig").first().addClass("buttonExpandable");c.hasClass("selected")&&d.show();c.find("a").first().bind("click",function(g){g.preventDefault();c.parents(".column-row").CalculateRowHeight();c.toggleClass("selected");d.slideToggle({speed:300,easing:"easeInQuad",step:function(){e.trigger("columnUpdate")}},function(){})})}})})})(jQuery,
this);
(function(a,b){a.fn.EqualRowHeight=function(c,d){var e=c||".inline-column",g=d||{};return this.each(function(){var f=a(this),h=f.parents(".column-row").first();f.css("height","");h.css("height","");var l=0;if(f.hasClass("t-row"))l=f.height();else{l=0;if(g.height)l=g.height;else f.find(e).each(function(){var j=a(this).outerHeight(true);if(j>=l)l=j});if(f.hasClass("inline-row")&&a.browser.msie===true&&f.children(".column-round").length>0)l+=18}f.css("height",l+"px");h.CalculateRowHeight()})};a.fn.CalculateRowHeight=
function(){var c=[{height:4450,className:"column-row-1-2",minHeight:90},{height:2E3,className:"column-row-1-1",minHeight:90},{height:800,className:"column-row-1",minHeight:90},{height:420,className:"column-row-2",minHeight:90},{height:220,className:"column-row-3",minHeight:40}];return this.each(function(){var d=a(this);d.css("height","");a.each(c,function(){d.removeClass(this.className)});var e=0;d.find(".column-content").each(function(){var h=a(this),l=h.height();if(h.parent().hasClass("column-background"))l=
l-80+15;if(l>=e)e=l});var g="",f=0;a(c).each(function(h,l){if(e<l.height){g=l.className;f=l.minHeight}});d.addClass(g);if(e<f)e=f;d.css("height",e+"px");d.css("margin-bottom","80px")})};b.rowsToCalculate=[];b.PushRows=function(c){var d=function(){};if(typeof c=="function")d=c;b.rowsToCalculate.push(d)};b.CalculateAllRows=function(){a.each(b.rowsToCalculate,function(){this()})};a().ready(function(){a(".column-row").bind("columnUpdate",function(){a(this).CalculateRowHeight()});b.PushRows(function(){a(".inline-row").EqualRowHeight()});
b.PushRows(function(){a(".column-row").CalculateRowHeight()});b.PushRows(function(){a("div.t-row").EqualRowHeight(".t-cell");a("div.t-row img").length&&a(window).bind("load",function(){a("div.t-row").EqualRowHeight(".t-cell")})});b.CalculateAllRows();a(window).bind("load",function(){b.CalculateAllRows()}).bind("roundedCorner",function(){b.CalculateAllRows()})})})(jQuery,this);
(function(a){a.fn.updateableSelect=function(){return this.each(function(){var b=a(this).attr("name");if(b=a.url.param(b)||a(this).find("option[selected]").val())if(b=a(this).find("option[value="+b+"]"))try{a(this)[0].selectedIndex=b[0].index}catch(c){}a(this).change(function(){var d=a(this).val(),e=a(this).attr("name");a.url.param(e,d);a.url.go()})})};a.fn.updateableLinks=function(){return this.each(function(){var b=a(this).attr("rel");b=b.substr(0,1)=="?"?b.substr(1):b;var c={};a.each(b.split("&"),
function(){var d=this.split("="),e=d.shift();d=d.shift();c[e]=d});a.data(this,"query",c);a(this).click(function(d){var e=a.data(this,"query");a.url.param(e).go();d.preventDefault();return false})})};a().ready(function(){a("select.update-url").updateableSelect();a("a.update-url").updateableLinks()})})(jQuery);
(function(a){a.toggleBody=function(b,c){var d=b||false;if(d){var e=a("#"+d).find("div.hide-body"),g=a("#"+d).find("a.hide-body");if(e){var f=c||null,h=null;h=f!==null?f:e.get(0).style.display=="none"?"show":"hide";if(h=="show"){g.removeClass("play-down").addClass("play-up");e.show()}else if(h=="hide"){g.removeClass("play-up").addClass("play-down");e.hide()}a.cookie("UniverseShowHideList$"+d,h,{expires:14});e.parents(".column-row").CalculateRowHeight()}}};a.fn.toggleBody=function(){return this.each(function(){var b=
a(this).attr("id");if(b){var c=a.cookie("UniverseShowHideList$"+b)||"show";a.toggleBody(b,c)}})};a().ready(function(){a("a.hide-body").parents(".column-row").toggleBody();a("a.hide-body").click(function(b){b.preventDefault();(b=a(this).parents(".column-row").attr("id"))&&a.toggleBody(b)})})})(jQuery);
(function(a){if(a.browser.msie===true)if(document.namespaces.v==null){for(var b=["shape","shapetype","group","background","path","formulas","handles","fill","stroke","shadow","textbox","textpath","imagedata","line","polyline","curve","roundrect","oval","rect","arc","image"],c=document.createStyleSheet(),d=0;d<b.length;d++)c.addRule("v\\:"+b[d],"behavior: url(#default#VML); display:inline-block;");c.addRule("var","zoom:1;");document.namespaces.add("v","urn:schemas-microsoft-com:vml")}a.fn.rounded=
function(e){var g=a.extend({radius:20},e||{});return this.each(function(){var f=this,h=a(f);if(f&&f.parentNode)if(!h.hasClass("hasbeenrounded")){h.addClass("hasbeenrounded").hide();h.parent("a").addClass("rounded");var l=a("<img />"),j=null;l.bind("load",function(){var k=0,n=0;if(a.browser.msie==true){k=f.attributes.width&&f.attributes.width.specified!==0?h.attr("width"):this.width;n=f.attributes.height&&f.attributes.height.specified!==0?h.attr("height"):this.height}else{k=f.hasAttribute("width")?
f.getAttribute("width"):this.width;n=f.hasAttribute("height")?f.getAttribute("height"):this.height}var p=k,q=n,o=g.radius;if(a.browser.msie===true){o=Math.max(Math.min(100,o/(Math.min(k,n)/100)),0);o+="%";vml=document.createElement('<var style="overflow:hidden;display:inline-block;width:'+k+"px;height:"+n+'px;padding:0;">');vml.innerHTML='<v:group style="zoom:1; margin:-1px 0 0 -1px; padding:0; position:relative; width:'+k+"px;height:"+n+'px;" coordsize="'+k+","+n+'"><v:roundrect arcsize="'+o+'" strokeweight="0" filled="t" stroked="f" fillcolor="#ffffff" style="position:absolute; margin:-1px 0 0 -1px;padding:0; width:'+
k+"px;height:"+n+'px;display:block;"><v:fill src="'+this.src+'" type="frame" /></v:roundrect></v:group>';vml.src=this.src;f.parentNode.insertBefore(vml,f);j=vml}else{var r=document.createElement("canvas");f.parentNode.insertBefore(r,f);r.width=k;r.height=n;var m=r.getContext("2d");m.beginPath();m.moveTo(0,0+o);m.lineTo(0,0+q-o);m.quadraticCurveTo(0,0+q,0+o,0+q);m.lineTo(0+p-o,0+q);m.quadraticCurveTo(0+p,0+q,0+p,0+q-o);m.lineTo(0+p,0+o);m.quadraticCurveTo(0+p,0,0+p-o,0);m.lineTo(0+o,0);m.quadraticCurveTo(0,
0,0,0+o);m.closePath();m.clip();m.fillStyle="rgba(255, 255, 255, 0)";m.fillRect(0,0,k,n);m.drawImage(this,0,0,k,n);j=r}h.trigger("roundedCorner",{width:k,height:n+12});j.className=f.className;if(a.support.style)j.setAttribute("style",f.getAttribute("style"));else j.style.cssText=f.style.cssText;h.attr("align")&&a(j).css("float",h.attr("align"));a(j).show();h.remove()});l.attr("src",this.src)}})};a().ready(function(){if(a.browser.msie==true){a("img.rounded").each(function(){if(this.complete)a(this).rounded();
else this.onload=function(){a(this).rounded()}});a("img.rounded-tiny").each(function(){if(this.complete)a(this).rounded({radius:8});else this.onload=function(){a(this).rounded({radius:8})}});a("img.rounded-slideshow").each(function(){if(this.complete)a(this).rounded({radius:32});else this.onload=function(){a(this).rounded({radius:32})}})}else{a("img.rounded").rounded({});a("img.rounded-tiny").rounded({radius:8});a("img.rounded-slideshow").rounded({radius:32})}})})(jQuery);
(function(a){a.fn.ajaxLoad=function(b){var c="show";switch(typeof b){case "string":c=b;break;case "object":default:a.extend(b,{});break}return a(this).each(function(){var d=a(this).parent(),e=d.find(".overlay");if(e.length!=1){e.remove();e=a('<div class="overlay column-round"><b><i /></b><i><b /></i><em /><div class="throbber"></div></div>');d.append(e)}if(c)switch(c){default:case "show":e.show();e=d.css("position");if(e!="absolute"||e!="relative")d.css("position","relative");break;case "hide":case "stop":e.hide().remove();
break}})}})(jQuery);if(window.popupLanguage===undefined)window.popupLanguage={ok:"Ok",cancel:"Cancel",attention:"Attention"};
(function(a,b){b.alreadyPopped=false;b.Popup=function(){if(b.alreadyPopped!==true){var c=this,d="",e=window.popupLanguage,g={type:"confirm",closeButton:true,animate:false,wide:false,buttons:[{value:e.ok},{value:e.cancel}]},f=[];arguments&&arguments.length>0&&a.each(arguments,function(j,k){switch(typeof k){default:case "string":d=k;break;case "object":if(k instanceof jQuery)d=k;else g=a.extend(g,k);break;case "function":f.push(k);break}});if(g.functions)typeof g.functions=="array"?a.extend(g.functions,
f):f.push(g.functions);var h=a('<div id="PopupOverlay"><div id="Popup"><div id="PopupContent"><h1>'+e.attention+'</h1><div id="PopupText"></div></div></div></div>');h.find("#Popup").addClass(g.type+(g.wide?" wide":""));e=a('<a href="#" id="PopupClose"></a>').bind("click",function(j){j.preventDefault();c.fireFunction("last")});var l=a('<div id="PopupButtonBar"></div>');g.closeButton===true&&h.find("#PopupContent").prepend(e);e=a('<span id="PopupIcon" class="popupIcon"></span>');g.icon!==false&&h.find("#PopupContent").prepend(e);
if(g.buttons&&g.buttons.length>0){a.each(g.buttons,function(j,k){var n=typeof k=="object"?k.value:k;a('<a href="#" />').html(n).wrapInner("<span />").addClass("button small").bind("click",function(p){p.preventDefault();c.fireFunction(j)}).appendTo(l)});h.find("#Popup").append(l)}h.find("#PopupText").html(d);this.fireFunction=function(j){c.close();var k=0;if(typeof j=="string")if(j=="last")k=f.length-1;else{if(j=="first")k=0}else k=j;j=f[k];typeof j=="function"&&j.call()};this.close=function(){g.animate===
true?h.fadeOut("fast",function(){c.clean()}):c.clean();return c};this.init=function(){b.alreadyPopped=true;c.clean();a("body").append(h);Cufon.replace(h.find("h1"));g.animate===true&&h.hide().fadeIn("fast");a(window).bind("keypress.popup",function(j){if(j=j.keyCode)if(j==27)c.fireFunction("last");else j==13&&c.fireFunction("first")});return c};this.clean=function(){b.alreadyPopped=false;a(window).unbind("keypress.popup");a("#PopupOverlay").remove();return c};this.init()}};b.alert=function(c){var d=
{type:"alert",closeButton:true,icon:"alert",buttons:[popupLanguage.ok]};c=a("<p />").html(c);new Popup(d,c)}})(jQuery,this);if(window.top.allowIframe&&window.top&&window.top.location&&window.top.location!=window.location)window.top.location=window.location;
if(!("console"in window)||!("firebug"in console)){var names=["log","debug","info","warn","error","assert","dir","dirxml","group","groupEnd","time","timeEnd","count","trace","profile","profileEnd"];window.console={};for(var i=0;i<names.length;++i)window.console[names[i]]=function(){}}
(function(a){a().ready(function(){a("a.disabled").click(function(b){b.preventDefault()});a("ul#SectionMenu").find("ul li:nth-child(even)").addClass("even");a("table > tbody > tr:nth-child(even)").addClass("even");a("table > tbody > tr:nth-child(odd)").addClass("odd");a("div.t-list > div.t-row:nth-child(even)").addClass("even");a("div.t-list > div.t-row:nth-child(odd)").addClass("odd");if(a.browser.msie===true&&a.browser.version>6||!a.browser.msie)a("div.column-round, div.inline-round, div.t-row").prepend("<b><i></i></b><i><b></b></i><em></em>");
a("a.xLink").live("click",function(b){var c=a(this);b.preventDefault();this.blur();b=this.rel.split(" ");var d=a(b[0]);b=null;b=c.find(".popupContent").length>0?c.find(".popupContent").clone(true):d.length>0?d.clone(true):"<p>"+this.title+"</p>";var e=this.href;c={type:"info"};if(a(b).text().split(" ").length>20)c.wide=true;new Popup(b,c,function(){a.url.setUrl(e).go()},function(){})})})})(jQuery);

