if (typeof WebCollage == 'undefined')
{
(function(){
if (typeof WebCollage == 'undefined')
WebCollage = {};
/**
* SWFObject v2.2
* is released under the MIT License
*/
WebCollage.SWFObject22=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f()}});if(O==top){(function(){if(J){return}try{j.documentElement.doScroll("left")}catch(X){setTimeout(arguments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(J){return}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode.removeChild(Z)}catch(aa){return}J=true;var X=U.length;for(var Y=0;Y0){for(var af=0;af0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&&A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class")}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align")}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad'}}aa.outerHTML='";N[N.length]=ai.id;X=c(ai.id)}else{var Z=C(r);Z.setAttribute("type",q);for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()=="styleclass"){Z.setAttribute("class",ai[ac])}else{if(ac.toLowerCase()!="classid"){Z.setAttribute(ac,ai[ac])}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&&ab.toLowerCase()!="movie"){e(Z,ab,ag[ab])}}aa.parentNode.replaceChild(Z,aa);X=Z}}return X}function e(Z,X,Y){var aa=C("param");aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa)}function y(Y){var X=c(Y);if(X&&X.nodeName=="OBJECT"){if(M.ie&&M.win){X.style.display="none";(function(){if(X.readyState==4){b(Y)}else{setTimeout(arguments.callee,10)}})()}else{X.parentNode.removeChild(X)}}}function b(Z){var Y=c(Z);if(Y){for(var X in Y){if(typeof Y[X]=="function"){Y[X]=null}}Y.parentNode.removeChild(Y)}}function c(Z){var X=null;try{X=j.getElementById(Z)}catch(Y){}return X}function C(X){return j.createElement(X)}function i(Z,X,Y){Z.attachEvent(X,Y);I[I.length]=[Z,X,Y]}function F(Z){var Y=M.pv,X=Z.split(".");X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]>X[0]||(Y[0]==X[0]&&Y[1]>X[1])||(Y[0]==X[0]&&Y[1]==X[1]&&Y[2]>=X[2]))?true:false}function v(ac,Y,ad,ab){if(M.ie&&M.mac){return}var aa=j.getElementsByTagName("head")[0];if(!aa){return}var X=(ad&&typeof ad=="string")?ad:"screen";if(ab){n=null;G=null}if(!n||G!=X){var Z=C("style");Z.setAttribute("type","text/css");Z.setAttribute("media",X);n=aa.appendChild(Z);if(M.ie&&M.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1]}G=X}if(M.ie&&M.win){if(n&&typeof n.addRule==r){n.addRule(ac,Y)}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}"))}}}function w(Z,X){if(!m){return}var Y=X?"visible":"hidden";if(J&&c(Z)){c(Z).style.visibility=Y}else{v("#"+Z,"visibility:"+Y)}}function L(Y){var Z=/[\\\"<>\.;]/;var X=Z.exec(Y)!=null;return X&&typeof encodeURIComponent!=D?encodeURIComponent(Y):Y}var d=function(){if(M.ie&&M.win){window.attachEvent("onunload",function(){var ac=I.length;for(var ab=0;ab)[^>]*$|^#(\w+)$/,isSimple=/^.[^:#\[\.]*$/,undefined;jQuery.fn=jQuery.prototype={init:function(selector,context){selector=selector||document;if(selector.nodeType){this[0]=selector;this.length=1;return this;}if(typeof selector=="string"){var match=quickExpr.exec(selector);if(match&&(match[1]||!context)){if(match[1])selector=jQuery.clean([match[1]],context);else{var elem=document.getElementById(match[3]);if(elem){if(elem.id!=match[3])return jQuery().find(selector);return jQuery(elem);}selector=[];}}else
return jQuery(context).find(selector);}else if(jQuery.isFunction(selector))return jQuery(document)[jQuery.fn.ready?"ready":"load"](selector);return this.setArray(jQuery.makeArray(selector));},jquery:"1.2.6",size:function(){return this.length;},length:0,get:function(num){return num==undefined?jQuery.makeArray(this):this[num];},pushStack:function(elems){var ret=jQuery(elems);ret.prevObject=this;return ret;},setArray:function(elems){this.length=0;Array.prototype.push.apply(this,elems);return this;},each:function(callback,args){return jQuery.each(this,callback,args);},index:function(elem){var ret=-1;return jQuery.inArray(elem&&elem.jquery?elem[0]:elem,this);},attr:function(name,value,type){var options=name;if(name.constructor==String)if(value===undefined)return this[0]&&jQuery[type||"attr"](this[0],name);else{options={};options[name]=value;}return this.each(function(i){for(name in options)jQuery.attr(type?this.style:this,name,jQuery.prop(this,options[name],type,i,name));});},css:function(key,value){if((key=='width'||key=='height')&&parseFloat(value)<0)value=undefined;return this.attr(key,value,"curCSS");},text:function(text){if(typeof text!="object"&&text!=null)return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(text));var ret="";jQuery.each(text||this,function(){jQuery.each(this.childNodes,function(){if(this.nodeType!=8)ret+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this]);});});return ret;},wrapAll:function(html){if(this[0])jQuery(html,this[0].ownerDocument).clone().insertBefore(this[0]).map(function(){var elem=this;while(elem.firstChild)elem=elem.firstChild;return elem;}).append(this);return this;},wrapInner:function(html){return this.each(function(){jQuery(this).contents().wrapAll(html);});},wrap:function(html){return this.each(function(){jQuery(this).wrapAll(html);});},append:function(){return this.domManip(arguments,true,false,function(elem){if(this.nodeType==1)this.appendChild(elem);});},prepend:function(){return this.domManip(arguments,true,true,function(elem){if(this.nodeType==1)this.insertBefore(elem,this.firstChild);});},before:function(){return this.domManip(arguments,false,false,function(elem){this.parentNode.insertBefore(elem,this);});},after:function(){return this.domManip(arguments,false,true,function(elem){this.parentNode.insertBefore(elem,this.nextSibling);});},end:function(){return this.prevObject||jQuery([]);},find:function(selector){var elems=jQuery.map(this,function(elem){return jQuery.find(selector,elem);});return this.pushStack(/[^+>] [^+>]/.test(selector)||selector.indexOf("..")>-1?jQuery.unique(elems):elems);},clone:function(events){var ret=this.map(function(){if(jQuery.browser.msie&&!jQuery.isXMLDoc(this)){var clone=this.cloneNode(true),container=document.createElement("div");container.appendChild(clone);return jQuery.clean([container.innerHTML])[0];}else
return this.cloneNode(true);});var clone=ret.find("*").andSelf().each(function(){if(this[expando]!=undefined)this[expando]=null;});if(events===true)this.find("*").andSelf().each(function(i){if(this.nodeType==3)return;var events=jQuery.data(this,"events");for(var type in events)for(var handler in events[type])jQuery.event.add(clone[i],type,events[type][handler],events[type][handler].data);});return ret;},filter:function(selector){return this.pushStack(jQuery.isFunction(selector)&&jQuery.grep(this,function(elem,i){return selector.call(elem,i);})||jQuery.multiFilter(selector,this));},not:function(selector){if(selector.constructor==String)if(isSimple.test(selector))return this.pushStack(jQuery.multiFilter(selector,this,true));else
selector=jQuery.multiFilter(selector,this);var isArrayLike=selector.length&&selector[selector.length-1]!==undefined&&!selector.nodeType;return this.filter(function(){return isArrayLike?jQuery.inArray(this,selector)<0:this!=selector;});},add:function(selector){return this.pushStack(jQuery.unique(jQuery.merge(this.get(),typeof selector=='string'?jQuery(selector):jQuery.makeArray(selector))));},is:function(selector){return!!selector&&jQuery.multiFilter(selector,this).length>0;},hasClass:function(selector){return this.is("."+selector);},val:function(value){if(value==undefined){if(this.length){var elem=this[0];if(jQuery.nodeName(elem,"select")){var index=elem.selectedIndex,values=[],options=elem.options,one=elem.type=="select-one";if(index<0)return null;for(var i=one?index:0,max=one?index+1:options.length;i=0||jQuery.inArray(this.name,value)>=0);else if(jQuery.nodeName(this,"select")){var values=jQuery.makeArray(value);jQuery("option",this).each(function(){this.selected=(jQuery.inArray(this.value,values)>=0||jQuery.inArray(this.text,values)>=0);});if(!values.length)this.selectedIndex=-1;}else
this.value=value;});},html:function(value){return value==undefined?(this[0]?this[0].innerHTML:null):this.empty().append(value);},replaceWith:function(value){return this.after(value).remove();},eq:function(i){return this.slice(i,i+1);},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments));},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem);}));},andSelf:function(){return this.add(this.prevObject);},data:function(key,value){var parts=key.split(".");parts[1]=parts[1]?"."+parts[1]:"";if(value===undefined){var data=this.triggerHandler("getData"+parts[1]+"!",[parts[0]]);if(data===undefined&&this.length)data=jQuery.data(this[0],key);return data===undefined&&parts[1]?this.data(parts[0]):data;}else
return this.trigger("setData"+parts[1]+"!",[parts[0],value]).each(function(){jQuery.data(this,key,value);});},removeData:function(key){return this.each(function(){jQuery.removeData(this,key);});},domManip:function(args,table,reverse,callback){var clone=this.length>1,elems;return this.each(function(){if(!elems){elems=jQuery.clean(args,this.ownerDocument);if(reverse)elems.reverse();}var obj=this;if(table&&jQuery.nodeName(this,"table")&&jQuery.nodeName(elems[0],"tr"))obj=this.getElementsByTagName("tbody")[0]||this.appendChild(this.ownerDocument.createElement("tbody"));var scripts=jQuery([]);jQuery.each(elems,function(){var elem=clone?jQuery(this).clone(true)[0]:this;if(jQuery.nodeName(elem,"script"))scripts=scripts.add(elem);else{if(elem.nodeType==1)scripts=scripts.add(jQuery("script",elem).remove());callback.call(obj,elem);}});scripts.each(evalScript);});}};jQuery.fn.init.prototype=jQuery.fn;function evalScript(i,elem){if(elem.src)jQuery.ajax({url:elem.src,async:false,dataType:"script"});else
jQuery.globalEval(elem.text||elem.textContent||elem.innerHTML||"");if(elem.parentNode)elem.parentNode.removeChild(elem);}function now(){return+new Date;}jQuery.extend=jQuery.fn.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options;if(target.constructor==Boolean){deep=target;target=arguments[1]||{};i=2;}if(typeof target!="object"&&typeof target!="function")target={};if(length==i){target=this;--i;}for(;i-1;}},swap:function(elem,options,callback){var old={};for(var name in options){old[name]=elem.style[name];elem.style[name]=options[name];}callback.call(elem);for(var name in options)elem.style[name]=old[name];},css:function(elem,name,force){if(name=="width"||name=="height"){var val,props={position:"absolute",visibility:"hidden",display:"block"},which=name=="width"?["Left","Right"]:["Top","Bottom"];function getWH(){val=name=="width"?elem.offsetWidth:elem.offsetHeight;var padding=0,border=0;jQuery.each(which,function(){padding+=parseFloat(jQuery.curCSS(elem,"padding"+this,true))||0;border+=parseFloat(jQuery.curCSS(elem,"border"+this+"Width",true))||0;});val-=Math.round(padding+border);}if(jQuery(elem).is(":visible"))getWH();else
jQuery.swap(elem,props,getWH);return Math.max(0,val);}return jQuery.curCSS(elem,name,force);},curCSS:function(elem,name,force){var ret,style=elem.style;function color(elem){if(!jQuery.browser.safari)return false;var ret=defaultView.getComputedStyle(elem,null);return!ret||ret.getPropertyValue("color")=="";}if(name=="opacity"&&jQuery.browser.msie){ret=jQuery.attr(style,"opacity");return ret==""?"1":ret;}if(jQuery.browser.opera&&name=="display"){var save=style.outline;style.outline="0 solid black";style.outline=save;}if(name.match(/float/i))name=styleFloat;if(!force&&style&&style[name])ret=style[name];else if(defaultView.getComputedStyle){if(name.match(/float/i))name="float";name=name.replace(/([A-Z])/g,"-$1").toLowerCase();var computedStyle=defaultView.getComputedStyle(elem,null);if(computedStyle&&!color(elem))ret=computedStyle.getPropertyValue(name);else{var swap=[],stack=[],a=elem,i=0;for(;a&&color(a);a=a.parentNode)stack.unshift(a);for(;i]*?)\/>/g,function(all,front,tag){return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?all:front+">"+tag+">";});var tags=jQuery.trim(elem).toLowerCase(),div=context.createElement("div");var wrap=!tags.indexOf("",""]||!tags.indexOf("",""]||tags.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,""]||!tags.indexOf("
",""]||(!tags.indexOf(" | ","
"]||!tags.indexOf("",""]||jQuery.browser.msie&&[1,"div","
"]||[0,"",""];div.innerHTML=wrap[1]+elem+wrap[2];while(wrap[0]--)div=div.lastChild;if(jQuery.browser.msie){var tbody=!tags.indexOf(""&&tags.indexOf("=0;--j)if(jQuery.nodeName(tbody[j],"tbody")&&!tbody[j].childNodes.length)tbody[j].parentNode.removeChild(tbody[j]);if(/^\s/.test(elem))div.insertBefore(context.createTextNode(elem.match(/^\s*/)[0]),div.firstChild);}elem=jQuery.makeArray(div.childNodes);}if(elem.length===0&&(!jQuery.nodeName(elem,"form")&&!jQuery.nodeName(elem,"select")))return;if(elem[0]==undefined||jQuery.nodeName(elem,"form")||elem.options)ret.push(elem);else
ret=jQuery.merge(ret,elem);});return ret;},attr:function(elem,name,value){if(!elem||elem.nodeType==3||elem.nodeType==8)return undefined;var notxml=!jQuery.isXMLDoc(elem),set=value!==undefined,msie=jQuery.browser.msie;name=notxml&&jQuery.props[name]||name;if(elem.tagName){var special=/href|src|style/.test(name);if(name=="selected"&&jQuery.browser.safari)elem.parentNode.selectedIndex;if(name in elem&¬xml&&!special){if(set){if(name=="type"&&jQuery.nodeName(elem,"input")&&elem.parentNode)throw"type property can't be changed";elem[name]=value;}if(jQuery.nodeName(elem,"form")&&elem.getAttributeNode(name))return elem.getAttributeNode(name).nodeValue;return elem[name];}if(msie&¬xml&&name=="style")return jQuery.attr(elem.style,"cssText",value);if(set)elem.setAttribute(name,""+value);var attr=msie&¬xml&&special?elem.getAttribute(name,2):elem.getAttribute(name);return attr===null?undefined:attr;}if(msie&&name=="opacity"){if(set){elem.zoom=1;elem.filter=(elem.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(value)+''=="NaN"?"":"alpha(opacity="+value*100+")");}return elem.filter&&elem.filter.indexOf("opacity=")>=0?(parseFloat(elem.filter.match(/opacity=([^)]*)/)[1])/100)+'':"";}name=name.replace(/-([a-z])/ig,function(all,letter){return letter.toUpperCase();});if(set)elem[name]=value;return elem[name];},trim:function(text){return(text||"").replace(/^\s+|\s+$/g,"");},makeArray:function(array){var ret=[];if(array!=null){var i=array.length;if(i==null||array.split||array.setInterval||array.call)ret[0]=array;else
while(i)ret[--i]=array[i];}return ret;},inArray:function(elem,array){for(var i=0,length=array.length;i*",this).remove();while(this.firstChild)this.removeChild(this.firstChild);}},function(name,fn){jQuery.fn[name]=function(){return this.each(fn,arguments);};});jQuery.each(["Height","Width"],function(i,name){var type=name.toLowerCase();jQuery.fn[type]=function(size){return this[0]==window?jQuery.browser.opera&&document.body["client"+name]||jQuery.browser.safari&&window["inner"+name]||document.compatMode=="CSS1Compat"&&document.documentElement["client"+name]||document.body["client"+name]:this[0]==document?Math.max(Math.max(document.body["scroll"+name],document.documentElement["scroll"+name]),Math.max(document.body["offset"+name],document.documentElement["offset"+name])):size==undefined?(this.length?jQuery.css(this[0],type):null):this.css(type,size.constructor==String?size:size+"px");};});function num(elem,prop){return elem[0]&&parseInt(jQuery.curCSS(elem[0],prop,true),10)||0;}var chars=jQuery.browser.safari&&parseInt(jQuery.browser.version)<417?"(?:[\\w*_-]|\\\\.)":"(?:[\\w\u0128-\uFFFF*_-]|\\\\.)",quickChild=new RegExp("^>\\s*("+chars+"+)"),quickID=new RegExp("^("+chars+"+)(#)("+chars+"+)"),quickClass=new RegExp("^([#.]?)("+chars+"*)");jQuery.extend({expr:{"":function(a,i,m){return m[2]=="*"||jQuery.nodeName(a,m[2]);},"#":function(a,i,m){return a.getAttribute("id")==m[2];},":":{lt:function(a,i,m){return im[3]-0;},nth:function(a,i,m){return m[3]-0==i;},eq:function(a,i,m){return m[3]-0==i;},first:function(a,i){return i==0;},last:function(a,i,m,r){return i==r.length-1;},even:function(a,i){return i%2==0;},odd:function(a,i){return i%2;},"first-child":function(a){return a.parentNode.getElementsByTagName("*")[0]==a;},"last-child":function(a){return jQuery.nth(a.parentNode.lastChild,1,"previousSibling")==a;},"only-child":function(a){return!jQuery.nth(a.parentNode.lastChild,2,"previousSibling");},parent:function(a){return a.firstChild;},empty:function(a){return!a.firstChild;},contains:function(a,i,m){return(a.textContent||a.innerText||jQuery(a).text()||"").indexOf(m[3])>=0;},visible:function(a){return"hidden"!=a.type&&jQuery.css(a,"display")!="none"&&jQuery.css(a,"visibility")!="hidden";},hidden:function(a){return"hidden"==a.type||jQuery.css(a,"display")=="none"||jQuery.css(a,"visibility")=="hidden";},enabled:function(a){return!a.disabled;},disabled:function(a){return a.disabled;},checked:function(a){return a.checked;},selected:function(a){return a.selected||jQuery.attr(a,"selected");},text:function(a){return"text"==a.type;},radio:function(a){return"radio"==a.type;},checkbox:function(a){return"checkbox"==a.type;},file:function(a){return"file"==a.type;},password:function(a){return"password"==a.type;},submit:function(a){return"submit"==a.type;},image:function(a){return"image"==a.type;},reset:function(a){return"reset"==a.type;},button:function(a){return"button"==a.type||jQuery.nodeName(a,"button");},input:function(a){return/input|select|textarea|button/i.test(a.nodeName);},has:function(a,i,m){return jQuery.find(m[3],a).length;},header:function(a){return/h\d/i.test(a.nodeName);},animated:function(a){return jQuery.grep(jQuery.timers,function(fn){return a==fn.elem;}).length;}}},parse:[/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,new RegExp("^([:.#]*)("+chars+"+)")],multiFilter:function(expr,elems,not){var old,cur=[];while(expr&&expr!=old){old=expr;var f=jQuery.filter(expr,elems,not);expr=f.t.replace(/^\s*,\s*/,"");cur=not?elems=f.r:jQuery.merge(cur,f.r);}return cur;},find:function(t,context){if(typeof t!="string")return[t];if(context&&context.nodeType!=1&&context.nodeType!=9)return[];context=context||document;var ret=[context],done=[],last,nodeName;while(t&&last!=t){var r=[];last=t;t=jQuery.trim(t);var foundToken=false,re=quickChild,m=re.exec(t);if(m){nodeName=m[1].toUpperCase();for(var i=0;ret[i];i++)for(var c=ret[i].firstChild;c;c=c.nextSibling)if(c.nodeType==1&&(nodeName=="*"||c.nodeName.toUpperCase()==nodeName))r.push(c);ret=r;t=t.replace(re,"");if(t.indexOf(" ")==0)continue;foundToken=true;}else{re=/^([>+~])\s*(\w*)/i;if((m=re.exec(t))!=null){r=[];var merge={};nodeName=m[2].toUpperCase();m=m[1];for(var j=0,rl=ret.length;j=0;if(!not&&pass||not&&!pass)tmp.push(r[i]);}return tmp;},filter:function(t,r,not){var last;while(t&&t!=last){last=t;var p=jQuery.parse,m;for(var i=0;p[i];i++){m=p[i].exec(t);if(m){t=t.substring(m[0].length);m[2]=m[2].replace(/\\/g,"");break;}}if(!m)break;if(m[1]==":"&&m[2]=="not")r=isSimple.test(m[3])?jQuery.filter(m[3],r,true).r:jQuery(r).not(m[3]);else if(m[1]==".")r=jQuery.classFilter(r,m[2],not);else if(m[1]=="["){var tmp=[],type=m[3];for(var i=0,rl=r.length;i=0)^not)tmp.push(a);}r=tmp;}else if(m[1]==":"&&m[2]=="nth-child"){var merge={},tmp=[],test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(m[3]=="even"&&"2n"||m[3]=="odd"&&"2n+1"||!/\D/.test(m[3])&&"0n+"+m[3]||m[3]),first=(test[1]+(test[2]||1))-0,last=test[3]-0;for(var i=0,rl=r.length;i=0)add=true;if(add^not)tmp.push(node);}r=tmp;}else{var fn=jQuery.expr[m[1]];if(typeof fn=="object")fn=fn[m[2]];if(typeof fn=="string")fn=eval("false||function(a,i){return "+fn+";}");r=jQuery.grep(r,function(elem,i){return fn(elem,i,m,r);},not);}}return{r:r,t:t};},dir:function(elem,dir){var matched=[],cur=elem[dir];while(cur&&cur!=document){if(cur.nodeType==1)matched.push(cur);cur=cur[dir];}return matched;},nth:function(cur,result,dir,elem){result=result||1;var num=0;for(;cur;cur=cur[dir])if(cur.nodeType==1&&++num==result)break;return cur;},sibling:function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType==1&&n!=elem)r.push(n);}return r;}});jQuery.event={add:function(elem,types,handler,data){if(elem.nodeType==3||elem.nodeType==8)return;if(jQuery.browser.msie&&elem.setInterval)elem=window;if(!handler.guid)handler.guid=this.guid++;if(data!=undefined){var fn=handler;handler=this.proxy(fn,function(){return fn.apply(this,arguments);});handler.data=data;}var events=jQuery.data(elem,"events")||jQuery.data(elem,"events",{}),handle=jQuery.data(elem,"handle")||jQuery.data(elem,"handle",function(){if(typeof jQuery!="undefined"&&!jQuery.event.triggered)return jQuery.event.handle.apply(arguments.callee.elem,arguments);});handle.elem=elem;jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];handler.type=parts[1];var handlers=events[type];if(!handlers){handlers=events[type]={};if(!jQuery.event.special[type]||jQuery.event.special[type].setup.call(elem)===false){if(elem.addEventListener)elem.addEventListener(type,handle,false);else if(elem.attachEvent)elem.attachEvent("on"+type,handle);}}handlers[handler.guid]=handler;jQuery.event.global[type]=true;});elem=null;},guid:1,global:{},remove:function(elem,types,handler){if(elem.nodeType==3||elem.nodeType==8)return;var events=jQuery.data(elem,"events"),ret,index;if(events){if(types==undefined||(typeof types=="string"&&types.charAt(0)=="."))for(var type in events)this.remove(elem,type+(types||""));else{if(types.type){handler=types.handler;types=types.type;}jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];if(events[type]){if(handler)delete events[type][handler.guid];else
for(handler in events[type])if(!parts[1]||events[type][handler].type==parts[1])delete events[type][handler];for(ret in events[type])break;if(!ret){if(!jQuery.event.special[type]||jQuery.event.special[type].teardown.call(elem)===false){if(elem.removeEventListener)elem.removeEventListener(type,jQuery.data(elem,"handle"),false);else if(elem.detachEvent)elem.detachEvent("on"+type,jQuery.data(elem,"handle"));}ret=null;delete events[type];}}});}for(ret in events)break;if(!ret){var handle=jQuery.data(elem,"handle");if(handle)handle.elem=null;jQuery.removeData(elem,"events");jQuery.removeData(elem,"handle");}}},trigger:function(type,data,elem,donative,extra){data=jQuery.makeArray(data);if(type.indexOf("!")>=0){type=type.slice(0,-1);var exclusive=true;}if(!elem){if(this.global[type])jQuery("*").add([window,document]).trigger(type,data);}else{if(elem.nodeType==3||elem.nodeType==8)return undefined;var val,ret,fn=jQuery.isFunction(elem[type]||null),event=!data[0]||!data[0].preventDefault;if(event){data.unshift({type:type,target:elem,preventDefault:function(){},stopPropagation:function(){},timeStamp:now()});data[0][expando]=true;}data[0].type=type;if(exclusive)data[0].exclusive=true;var handle=jQuery.data(elem,"handle");if(handle)val=handle.apply(elem,data);if((!fn||(jQuery.nodeName(elem,'a')&&type=="click"))&&elem["on"+type]&&elem["on"+type].apply(elem,data)===false)val=false;if(event)data.shift();if(extra&&jQuery.isFunction(extra)){ret=extra.apply(elem,val==null?data:data.concat(val));if(ret!==undefined)val=ret;}if(fn&&donative!==false&&val!==false&&!(jQuery.nodeName(elem,'a')&&type=="click")){this.triggered=true;try{elem[type]();}catch(e){}}this.triggered=false;}return val;},handle:function(event){var val,ret,namespace,all,handlers;event=arguments[0]=jQuery.event.fix(event||window.event);namespace=event.type.split(".");event.type=namespace[0];namespace=namespace[1];all=!namespace&&!event.exclusive;handlers=(jQuery.data(this,"events")||{})[event.type];for(var j in handlers){var handler=handlers[j];if(all||handler.type==namespace){event.handler=handler;event.data=handler.data;ret=handler.apply(this,arguments);if(val!==false)val=ret;if(ret===false){event.preventDefault();event.stopPropagation();}}}return val;},fix:function(event){if(event[expando]==true)return event;var originalEvent=event;event={originalEvent:originalEvent};var props="altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target timeStamp toElement type view wheelDelta which".split(" ");for(var i=props.length;i;i--)event[props[i]]=originalEvent[props[i]];event[expando]=true;event.preventDefault=function(){if(originalEvent.preventDefault)originalEvent.preventDefault();originalEvent.returnValue=false;};event.stopPropagation=function(){if(originalEvent.stopPropagation)originalEvent.stopPropagation();originalEvent.cancelBubble=true;};event.timeStamp=event.timeStamp||now();if(!event.target)event.target=event.srcElement||document;if(event.target.nodeType==3)event.target=event.target.parentNode;if(!event.relatedTarget&&event.fromElement)event.relatedTarget=event.fromElement==event.target?event.toElement:event.fromElement;if(event.pageX==null&&event.clientX!=null){var doc=document.documentElement,body=document.body;event.pageX=event.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc.clientLeft||0);event.pageY=event.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc.clientTop||0);}if(!event.which&&((event.charCode||event.charCode===0)?event.charCode:event.keyCode))event.which=event.charCode||event.keyCode;if(!event.metaKey&&event.ctrlKey)event.metaKey=event.ctrlKey;if(!event.which&&event.button)event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)));return event;},proxy:function(fn,proxy){proxy.guid=fn.guid=fn.guid||proxy.guid||this.guid++;return proxy;},special:{ready:{setup:function(){bindReady();return;},teardown:function(){return;}},mouseenter:{setup:function(){if(jQuery.browser.msie)return false;jQuery(this).bind("mouseover",jQuery.event.special.mouseenter.handler);return true;},teardown:function(){if(jQuery.browser.msie)return false;jQuery(this).unbind("mouseover",jQuery.event.special.mouseenter.handler);return true;},handler:function(event){if(withinElement(event,this))return true;event.type="mouseenter";return jQuery.event.handle.apply(this,arguments);}},mouseleave:{setup:function(){if(jQuery.browser.msie)return false;jQuery(this).bind("mouseout",jQuery.event.special.mouseleave.handler);return true;},teardown:function(){if(jQuery.browser.msie)return false;jQuery(this).unbind("mouseout",jQuery.event.special.mouseleave.handler);return true;},handler:function(event){if(withinElement(event,this))return true;event.type="mouseleave";return jQuery.event.handle.apply(this,arguments);}}}};jQuery.fn.extend({bind:function(type,data,fn){return type=="unload"?this.one(type,data,fn):this.each(function(){jQuery.event.add(this,type,fn||data,fn&&data);});},one:function(type,data,fn){var one=jQuery.event.proxy(fn||data,function(event){jQuery(this).unbind(event,one);return(fn||data).apply(this,arguments);});return this.each(function(){jQuery.event.add(this,type,one,fn&&data);});},unbind:function(type,fn){return this.each(function(){jQuery.event.remove(this,type,fn);});},trigger:function(type,data,fn){return this.each(function(){jQuery.event.trigger(type,data,this,true,fn);});},triggerHandler:function(type,data,fn){return this[0]&&jQuery.event.trigger(type,data,this[0],false,fn);},toggle:function(fn){var args=arguments,i=1;while(i=0){var selector=url.slice(off,url.length);url=url.slice(0,off);}callback=callback||function(){};var type="GET";if(params)if(jQuery.isFunction(params)){callback=params;params=null;}else{params=jQuery.param(params);type="POST";}var self=this;jQuery.ajax({url:url,type:type,dataType:"html",data:params,complete:function(res,status){if(status=="success"||status=="notmodified")self.html(selector?jQuery("").append(res.responseText.replace(/','gi'),'');if(this.iframe){var doc=this.iframe.contentDocument;if(!doc&&this.iframe.contentWindow)doc=this.iframe.contentWindow.document;if(!doc){var pThis=this;setTimeout(function(){pThis.loadHTML()},25);return}doc.open();doc.write(s);doc.close();try{s=doc.getElementById(this.id).innerHTML}catch(e){try{s=this.iframe.document.getElementById(this.id).innerHTML}catch(e){}}}else{s=s.replace(new RegExp('^.*?]*>(.*?).*?$','i'),'$1')}}hs.getElementByClass(this.content,'DIV','highslide-body').innerHTML=s;this.onLoad();for(var x in this)this[x]=null}};if(hs.ie){(function(){try{document.documentElement.doScroll('left')}catch(e){setTimeout(arguments.callee,50);return}hs.ready()})()}hs.addEventListener(document,'DOMContentLoaded',hs.ready);hs.addEventListener(window,'load',hs.ready);hs.langDefaults=hs.lang;var HsExpander=hs.Expander;hs.addEventListener(window,'load',function(){if(hs.expandCursor){var sel='.highslide img',dec='cursor: url('+hs.graphicsDir+hs.expandCursor+'), pointer !important;';var style=hs.createElement('style',{type:'text/css'},null,document.getElementsByTagName('HEAD')[0]);if(!hs.ie){style.appendChild(document.createTextNode(sel+" {"+dec+"}"))}else{var last=document.styleSheets[document.styleSheets.length-1];if(typeof(last.addRule)=="object")last.addRule(sel,dec)}}});hs.addEventListener(window,'resize',function(){hs.page=hs.getPageSize()});hs.addEventListener(document,'mousemove',function(e){hs.mouse={x:e.clientX,y:e.clientY}});hs.addEventListener(document,'mousedown',hs.mouseClickHandler);hs.addEventListener(document,'mouseup',hs.mouseClickHandler);hs.addEventListener(document,'ready',hs.getAnchors);hs.addEventListener(window,'load',hs.preloadImages);hs.addEventListener(window,'load',hs.preloadAjax);
// Highslide license key, do not remove: b2fb6f433e2445439ff08d45eb75a017
if (typeof WebCollage == 'undefined')
WebCollage = {};
WebCollage.HighSlide = hs;
})();
/**
* This function is a public one, so NO CHANGING THE INTERFACE WITHOUT BEING BACKWARD COMPATIBLE
*/
WebCollage.wcReportEvent = function (event, parameters, callbackWhenReportingIsDone)
{
if (WebCollage.enableReporting)
{
var reportingUrl = WebCollage.reporterRoot;
if (WebCollage.multiTenantReporter)
{
reportingUrl = reportingUrl + "?e=" + event+"&module="+WebCollage.moduleId + "&";
}
else
{
reportingUrl = reportingUrl + "/" + event + "?";
}
var urlFromParameters = (parameters ? parameters['url'] : null);
var url = urlFromParameters ? urlFromParameters : WebCollage.url;
if (url != null)
reportingUrl = reportingUrl +"url=" + encodeURIComponent(url)+"&";
if (WebCollage.profilePath != null)
reportingUrl = reportingUrl +"profilepath=" + WebCollage.profilePath +"&";
if (WebCollage.contextPath != null)
reportingUrl = reportingUrl +"contextpath=" + WebCollage.contextPath +"&";
reportingUrl = reportingUrl + "partnerid=" + WebCollage.partnerId +"&";
if (WebCollage.wcpc != null)
reportingUrl = reportingUrl + "wcpc=" + WebCollage.wcpc +"&";
if (WebCollage.origin!=null);
reportingUrl = reportingUrl + "origin=" + WebCollage.origin +"&";
if(typeof WebCollage.channelProductId != typeof undefined)
reportingUrl = reportingUrl + "channel-product-id=" + encodeURIComponent(WebCollage.channelProductId) + "&";
if (WebCollage.tab)
reportingUrl = reportingUrl + "tab=" + encodeURIComponent(WebCollage.tab) + "&";
reportingUrl = reportingUrl + "containerurl=" + encodeURIComponent(WebCollage.origin == 'showcase' ? location.href : location.hostname) +"&";
if (WebCollage.escapedReportingFilters)
reportingUrl = reportingUrl + WebCollage.escapedReportingFilters;
if (WebCollage.originRelatedParameters)
reportingUrl = reportingUrl + WebCollage.originRelatedParameters;
if (typeof parameters != typeof undefined)
for(parameter in parameters)
reportingUrl = reportingUrl + "&" + parameter + "=" + encodeURIComponent(parameters[parameter]);
var reportingImage = new Image(1, 1);
var doneFunction = function() {
if (callbackWhenReportingIsDone)
{
callbackWhenReportingIsDone();
callbackWhenReportingIsDone = null;
}
}
reportingImage.onload = doneFunction;
if (callbackWhenReportingIsDone)
window.setTimeout(doneFunction, 2000);
if (!WebCollage.multiTenantReporter)
{
reportingUrl = wsmlMakeResourceUrl(reportingUrl);
}
reportingImage.src = reportingUrl + "&random=" + Math.random();
}
else if (callbackWhenReportingIsDone)
callbackWhenReportingIsDone();
}
WebCollage.SWFObject15 = function(swf, id, w, h, version, bgcolor, quality, xiRedirectUrl, redirectUrl, detectKey) {
if (!document.getElementById) { return; }
this.params = new Object();
this.variables = new Object();
this.attributes = {"id" : id};
this.callback = function(e){};
if(swf) {
this.swf = swf;
}
if(w) {
this.width = w;
}
if(h) {
this.height = h;
}
if(bgcolor) {
this.params.bgcolor = bgcolor;
}
this.quality = quality ? quality : 'high';
this.addParam('quality', quality);
if(version) {
this.version = version;
}
if(detectKey) {
this.DETECT_KEY = detectKey;
}
this.xiRedirectUrl = (xiRedirectUrl) ? xiRedirectUrl : window.location;
this.redirectUrl = "";
if(redirectUrl) {
this.redirectUrl = redirectUrl;
}
this.wT = document.getElementsByTagName('title')[0].innerHTML;
}
WebCollage.SWFObject15.prototype = {
setAttribute: function(name, value) {
this.attributes[name] = value;
},
getAttribute: function(name) {
return this.attributes[name];
},
addParam: function(name, value) {
this.params[name] = value;
},
getParams: function() {
return this.params;
},
setParams: function(params) {
this.params = params;
},
addVariable: function(name, value) {
this.variables[name] = value;
},
getVariable: function(name){
return this.variables[name];
},
setVariables: function(vars) {
this.variables = vars;
},
getVariables: function(){
return this.variables;
},
setCallback: function(callback) {
this.callback = callback;
},
write : function(elementId) {
WebCollage.SWFObject22.embedSWF(this.swf, elementId, this.width, this.height, this.version, 'expressInstall.swf', this.variables, this.params, this.attributes, this.callback);
if (document.title)
{
document.title = this.wT;
}
}
}
/**
* This function is a public one, so NO CHANGING THE INTERFACE WITHOUT BEING BACKWARD COMPATIBLE
*/
WebCollage.wcReportVirtualPageView = function (pagePath)
{
WebCollage.wcReportEvent('brand-level-pageview', {'url': pagePath});
}
/**
* This function is deprecated, use wcReportCustomAction instead
*/
WebCollage.wcReportCustomEvent = function (customEventCode)
{
WebCollage.wcReportCustomAction(customEventCode);
}
WebCollage.wcReportCustomAction = function (customActionCode)
{
WebCollage.wcReportEvent('custom-action', {'action-name': customActionCode});
}
WebCollage.wcReportAssetAndRedirect = function (linkElement)
{
WebCollage.wcReportEvent('asset-view', {'asset': linkElement.getAttribute("data-wc-asset-path")}, function () {
location.href = linkElement.getAttribute("href")
});
}
WebCollage.wcRunJquery = function(wcFunction)
{
var $ = WebCollage.jQuery15;
var jQuery = WebCollage.jQuery15;
wcFunction($, jQuery);
}
WebCollage.wcA2cOrP2bOnclick = function (href)
{
var isIE8orUp = false;
WebCollage.wcRunJquery (function($, jQuery) {
isIE8orUp = $.browser.msie && ($.browser.version >= 8);
});
if (!isIE8orUp)
return true;
window.open(href,'_blank','status=yes,toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes');
return false;
}
WebCollage.wcOpenPopup = function (a,
hrefPopup,
hrefOverlay,
width,
extraWidth,
height,
extraHeight,
windowName,
renderAsOverlay,
closeText,
moveText,
resizeText,
cancelLoadingText)
{
//this function runs for the first time when the page is loaded. getParams returns the onclick function. When the actual link
//is clicked, the getParams is null. That's how we know that an actual click has occurred and not simply a page load.
if (typeof a.getParams == 'function')
return;
if (renderAsOverlay && (window.self == window.top)) //even if we want to render as overlay we need to make sure that the showcase is not embedded in an iframe
{
var nonSyndicatedHref = a.href;
a.href = hrefOverlay;
WebCollage.wcInsertIframe(a, true, width, height, closeText, moveText, resizeText, cancelLoadingText);
a.href = nonSyndicatedHref;
return false;
}
else
{
if (wcProductListingPopUpHeightAddition)
height += wcProductListingPopUpHeightAddition;
else
height += extraHeight;
if (wcProductListingPopUpWidthAddition)
width += wcProductListingPopUpWidthAddition;
else
width += extraWidth;
var w = window.open(hrefPopup, windowName, 'height=' + height + ',width=' + width + ',status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes');
if (w == null)
return false;
w.focus();
return false;
}
}
WebCollage.wcOpenNonResizablePopup = function (a,
width,
height,
closeText,
moveText,
resizeText,
cancelLoadingText)
{
//this function runs for the first time when the page is loaded. getParams returns the onclick function. When the actual link
//is clicked, the getParams is null. That's how we know that an actual click has occurred and not simply a page load.
if (typeof a.getParams == 'function')
return;
return WebCollage.wcInsertIframe(a, false, width, height, closeText, moveText, resizeText, cancelLoadingText, 'wc-nonresizable-overlay');
}
WebCollage.backLink = function ()
{
if (window.self == window.top)
{
history.back();
}
else
{
WebCollage.wcRunJquery (function($, jQuery) {
var newLocation = $('#wc-selected-sub-tab').eq(0).attr('href');
if (newLocation == undefined)
newLocation = $('.wc-pc-selected-tab a').eq(0).attr('href');
if (newLocation != undefined)
window.location.href = newLocation;
});
}
}
WebCollage.wcAddDimensionsToDiv = function ()
{
WebCollage.wcRunJquery (function($, jQuery) {
if ($.browser.safari)
return;
var tabbedContentDiv = $('.wc-pc-tabbed-content');
if (tabbedContentDiv.length > 0)
{
var wrappingDiv = tabbedContentDiv.parent().eq(0);
var productContentTabDiv = $('.wc-product-content').eq(0);
if (productContentTabDiv.length > 0 && wrappingDiv.length > 0)
{
var contentDimensions = WebCollage.getContentWrapperDimensionsIfContentWouldFitInWindow($);
var width = contentDimensions.width;
var height = contentDimensions.height;
var extraWidth = 0;
var productContentTabDivWidth = width;
var isIE = $.browser.msie;
if (isIE)
extraWidth = 0;
else
productContentTabDivWidth += 20;
var tabbedContentDivWidth = width - 2 + extraWidth;
var tabbedContentDivStyle = 'width:' + tabbedContentDivWidth + ' !important; height:' + height + '!important; overflow:auto !important';
tabbedContentDiv.attr('style', tabbedContentDivStyle);
productContentTabDiv.attr('style', 'width: ' + (productContentTabDivWidth + extraWidth) + ' !important');
if (isIE)
{
var pcTabsDiv = $('.wc-pc-tabs');
if (pcTabsDiv.length > 0)
{
pcTabsDiv.eq(0).attr('style', 'width: ' + tabbedContentDivWidth + "!important");
}
var additionalNavigationDiv = $('.wc-pc-additional-navigation');
if (additionalNavigationDiv.length > 0)
{
additionalNavigationDiv.eq(0).attr('style', 'width: ' + tabbedContentDivWidth + "!important");
}
window.setTimeout(function(){
wrappingDiv.css({'width' : width + extraWidth, 'height' : height});
}, 1);
}
else
{
wrappingDiv.css({'width' : width + extraWidth, 'height' : height});
}
}
}
else
{
var singleTabDiv = $('.wc-pc-single-tab');
if (singleTabDiv.length > 0)
{
var contentDimensions = WebCollage.getContentWrapperDimensionsIfContentWouldFitInWindow($);
var width = contentDimensions.width;
var style = "width:" + width + "!important";
singleTabDiv.eq(0).attr('style', style);
}
}
});
}
WebCollage.getContentWrapperDimensionsIfContentWouldFitInWindow = function ($)
{
var width = $(window).width() - 30;
var tabDimensions = WebCollage.getTabsDimensions($);
var tabHeight = 0;
if (tabDimensions != undefined)
tabHeight = tabDimensions.height;
var titleDimensions = WebCollage.getTitleDimensions($);
var titleHeight = 0;
if (titleDimensions != undefined)
titleHeight = titleDimensions.height;
var height = $(window).height() - titleHeight - tabHeight - WebCollage.getAdditionalNavigationHeight($) + 1; //1 pixel is the border
return {'width': width, 'height': height};
}
WebCollage.getTabsDimensions = function($)
{
if (arguments.callee.width != undefined)
{
return {'width' : arguments.callee.width, 'height' : arguments.callee.height};
}
var tabsWidth = undefined;
var tabsHeight = undefined;
var tdSeparatorFiller = $('.wc-pc-separator-filler');
if (tdSeparatorFiller.length > 0) //multiple tab scenario
{
var tdStyle = tdSeparatorFiller.attr('style');
tdSeparatorFiller.attr('style', 'width:auto !important;');
var tabTable = $('.wc-tab-table');
var tabTableStyle = tabTable.attr('style');
tabTable.attr('style', 'width:auto !important;');
tabsWidth = tabTable.get(0).offsetWidth;
tabsHeight = tabTable.get(0).offsetHeight + 25; //+25 is the amount of pixels needed to add to tabTable's height so that no scroll bars appear.
tabTable.attr('style', tabTableStyle);
tdSeparatorFiller.attr('style', tdStyle);
}
else //single tab scenario
{
var singleTabDiv = $('.wc-pc-single-tab');
if (singleTabDiv.length > 0)
{
var divStyle = singleTabDiv.attr('style');
singleTabDiv.attr('style', 'float:left !important;');
tabsWidth = singleTabDiv.get(0).offsetWidth;
tabsHeight = singleTabDiv.get(0).offsetHeight + 25; //+25 is the amount of pixels needed to add to tabTable's height so that no scroll bars appear.
singleTabDiv.attr('style', divStyle);
}
else
{
tabsWidth = 0;
tabsHeight = 0;
}
}
arguments.callee.width = tabsWidth;
arguments.callee.height = tabsHeight;
return {'width' : tabsWidth, 'height' : tabsHeight};
}
WebCollage.getTitleDimensions = function($)
{
if (arguments.callee.width != undefined)
{
return {'width' : arguments.callee.width, 'height' : arguments.callee.height};
}
var titleDiv = $('.wc-pc-title').eq(0);
if (titleDiv.length > 0)
{
var titleDimensions = WebCollage.getDimensionsForElement($, titleDiv);
titleDimensions.height += 25; //additional offset
arguments.callee.width = titleDimensions.width;
arguments.callee.height = titleDimensions.height;
return titleDimensions;
}
return {'width' : 0, 'height' : 0};
}
WebCollage.getDimensionsForElement = function($, element)
{
var style = element.attr('style');
element.attr('style','float:left !important');
var width = element.get(0).offsetWidth;
var height = element.get(0).offsetHeight;
if (style == undefined)
element.removeAttr('style');
else
element.attr('style', style);
return {'width' : width, 'height' : height};
}
WebCollage.getAdditionalNavigationHeight = function($)
{
var tabsHeight = 0;
var additionalNavigationDiv = $('.wc-pc-additional-navigation');
if (additionalNavigationDiv.length > 0)
tabsHeight = additionalNavigationDiv.get(0).offsetHeight + 25;
return tabsHeight;
}
/*The following code is used for opening popups as overlays*/
WebCollage.isOverlayAlreadyPositioned = false;
WebCollage.HighSlide.Expander.prototype.onBeforeExpand = function()
{
//need to make sure that the overflow value is auto on html so that when the iframe moves to a place where
//scrollbars are needed, they will show (sears is the reason for this fix).
WebCollage.wcRunJquery (function($, jQuery) {
var html = $('html');
var overflowX = html.css('overflow-x');
var overflowY = html.css('overflow-y');
html.attr('xoverflow', overflowX);
html.attr('yoverflow', overflowY);
html.css('overflow-x', '');
html.css('overflow-y', '');
html.css('overflow','auto');
});
}
WebCollage.HighSlide.Expander.prototype.onAfterClose = function()
{
if (wcPollingTimer != undefined)
{
clearInterval(wcPollingTimer);
wcPollingTimer = undefined;
}
WebCollage.isOverlayAlreadyPositioned = false;
WebCollage.wcRunJquery (function($, jQuery) {
WebCollage.doNotPassMouseEventsToDocument($);
var html = $('html');
var overflowX = html.attr('xoverflow');
html.removeAttr('xoverflow');
var overflowY = html.attr('yoverflow');
html.removeAttr('yoverflow');
html.css('overflow', '');
html.css({'overflow-x' : overflowX, 'overflow-y' : overflowY});
});
}
WebCollage.wcInsertIframe = function(a,
enableAutoResize,
width,
height,
closeText,
moveText,
resizeText,
cancelLoadingText,
wrapperClassName)
{
//this function runs for the first time when the page is loaded. getParams returns the onclick function. When the actual link
//is clicked, the getParams is null. That's how we know that an actual click has occurred and not simply a page load.
if (typeof a.getParams == 'function')
return;
WebCollage.wcRunJquery (function($, jQuery) {
WebCollage.registerCustomClose($, closeText);
WebCollage.registerCustomMove($, moveText);
WebCollage.registerCustomResize($, resizeText);
WebCollage.setCancelLoadingText($, cancelLoadingText);
WebCollage.createPositioningElement($);
var syndicatorSpan = WebCollage.findSyndicatorSpan($);
if (syndicatorSpan != undefined)
{
WebCollage.wrapWithSyndicatorIdIfNeeded($, syndicatorSpan);
WebCollage.passMouseEventsToDocumentIfHaveSyndicatorInterference(syndicatorSpan);
}
});
WebCollage.HighSlide.showCredits = false;
WebCollage.HighSlide.allowMultipleInstances = false;
var quirksModeScrollTop = document.body.scrollTop; //This will always be 0 in standard mode.
var standardModeScrollTop = document.documentElement.scrollTop; //This will always be 0 in quirks mode.
var scrollTop = quirksModeScrollTop >= standardModeScrollTop ? quirksModeScrollTop : standardModeScrollTop;
var scrollAmount = 70 + scrollTop; //if you change this 70 you need to change the 130 in WebCollage.adjustRequiredHeightIfNecessary to take into account this change
var targetY = 'wc-overlay-target ' + scrollAmount + 'px';
if (enableAutoResize)
{
WebCollage.startPollingForChangeInDimensions ();
var showcaseUrl = window.location.href.split("#")[0];
showcaseUrl = showcaseUrl.replace(/n-state/,"N_STATE"); //if n-state exists syndicator will redirect to the url found in it.
a.href = a.href.replace(/WS_CONTAINERURL/,escape(escape(escape(escape(showcaseUrl)))));
}
if (width == undefined)
width = 500;
if (height == undefined)
heigt = 500;
if (wrapperClassName == undefined)
wrapperClassName = 'wc-overlay';
return WebCollage.HighSlide.htmlExpand(a,
{objectType: 'iframe',
width: width,
height: height,
align: 'center',
targetY: targetY,
outlineType: 'rounded-white',
allowSizeReduction: false,
preserveContent: false,
wrapperClassName: wrapperClassName} );
}
WebCollage.findSyndicatorSpan = function ($)
{
var syndicatorSpan = $(".wc-module-width").eq(0).parents('span').filter(function (index) {
var id = $(this).attr("id");
if ((id != undefined) && (id != ""))
{
return $.isFunction(this.onmousemove) && $.isFunction(this.onmousedown);
}
return false;
})[0];
return syndicatorSpan;
}
WebCollage.passMouseEventsToDocumentIfHaveSyndicatorInterference = function(syndicatorSpan)
{
syndicatorSpan.oldmousedown = syndicatorSpan.onmousedown;
syndicatorSpan.onmousedown = function() {};
syndicatorSpan.oldmousemove = syndicatorSpan.onmousemove;
syndicatorSpan.onmousemove = function() {};
}
WebCollage.doNotPassMouseEventsToDocument = function($)
{
var syndicatorSpan = WebCollage.findSyndicatorSpan($);
if (syndicatorSpan == undefined)
return;
syndicatorSpan.onmousedown = syndicatorSpan.oldmousedown;
syndicatorSpan.oldmousedown = function() {};
syndicatorSpan.onmousemove = syndicatorSpan.oldmousemove;
syndicatorSpan.oldmousemove = function() {};
}
WebCollage.handleIE6bugWhereTheTopBorderOfTheOverlayIsNotDisplayed = function()
{
WebCollage.wcRunJquery (function($, jQuery) {
var tables = $('.highslide-container table');
if (tables.length > 1)
{
var tds = tables.eq(1).find('td');
var upperBorderDivs = tds.eq(1).find('div');
var upperBorderInnerDiv = upperBorderDivs.eq(1);
var upperBorderOuterDiv = upperBorderDivs.eq(0);
var lowerBorderDivs = tds.eq(7).find('div');
var lowerBorderInnerDiv = lowerBorderDivs.eq(1);
var lowerBorderOuterDiv = lowerBorderDivs.eq(0);
window.setTimeout(function(){
var upperWidth = upperBorderInnerDiv.css('width');
var lowerWidth = lowerBorderInnerDiv.css('width');
upperBorderInnerDiv.css('width', '');
upperBorderOuterDiv.css('width', '');
lowerBorderInnerDiv.css('width', '');
lowerBorderOuterDiv.css('width', '');
var style = upperBorderInnerDiv.attr('style');
style += ';WIDTH: ' + upperWidth + ' !IMPORTANT;';
upperBorderInnerDiv.attr('style', style);
style = upperBorderOuterDiv.attr('style');
style += ';WIDTH: ' + tds[1].offsetWidth + 'px !IMPORTANT;';
upperBorderOuterDiv.attr('style', style);
style = lowerBorderInnerDiv.attr('style');
style += ';width:' + lowerWidth + ' !IMPORTANT';
lowerBorderInnerDiv.attr('style', style);
style = lowerBorderOuterDiv.attr('style');
style += ';WIDTH: ' + tds[7].offsetWidth + 'px !IMPORTANT;';
lowerBorderOuterDiv.attr('style', style);
},1);
}
});
}
WebCollage.wrapWithSyndicatorIdIfNeeded = function($, syndicatorSpan)
{
var highslideContainer = $('.highslide-container').eq(0);
if (highslideContainer.length == 0)
{
WebCollage.HighSlide.init();
highslideContainer = $('.highslide-container').eq(0);
}
if (highslideContainer.parent().length > 0)
{
var wrapperForSyndicator = $(document.createElement('div')).attr('id', syndicatorSpan.id);
highslideContainer.wrap(wrapperForSyndicator);
}
}
WebCollage.createPositioningElement = function($)
{
var body = $('body');
if ($('#wc-overlay-target').length == 0)
{
var targetDiv = $(document.createElement('div')).attr('id', 'wc-overlay-target');
body.prepend(targetDiv);
}
}
WebCollage.setCancelLoadingText = function($, cancelLoadingText)
{
var a = $('.highslide-loading').eq(0);
a.attr('title', cancelLoadingText);
a.attr('alt', cancelLoadingText);
}
WebCollage.registerCustomClose = function($, closeText)
{
if ($('.custom-closebutton').length == 0)
{
if (closeText == undefined)
closeText = 'Close Window';
var htmlElement = '';
WebCollage.HighSlide.registerOverlay({
html: htmlElement,
position: 'top right',
useOnHtml: true,
fade: 2 // fading the semi-transparent overlay looks bad in IE
});
}
}
WebCollage.registerCustomMove = function($, moveText)
{
if ($('.custom-move').length == 0)
{
if (moveText == undefined)
moveText = 'Move';
var htmlElement = '';
WebCollage.HighSlide.registerOverlay({
html: htmlElement,
className: 'highslide-move',
position: 'top right',
useOnHtml: true,
fade: 2 // fading the semi-transparent overlay looks bad in IE
});
}
}
WebCollage.registerCustomResize = function($, resizeText)
{
if ($('.custom-resize').length == 0)
{
if (resizeText == undefined)
resizeText = 'Resize';
var htmlElement = '';
WebCollage.HighSlide.registerOverlay({
html: htmlElement,
className: 'highslide-resize',
position: 'bottom right',
useOnHtml: true,
fade: 2 // fading the semi-transparent overlay looks bad in IE
});
}
}
var wcPollingTimer = undefined;
WebCollage.startPollingForChangeInDimensions = function ()
{
wcPollingTimer = window.setInterval(function(){
try
{
if ((window.location.hash.length == 0) || (window.location.hash == "#w=&h=&ov=&min_w=" ))
return;
var hashValue = window.location.hash.substring(1);
if ((hashValue == null) || (hashValue.length == 0))
return;
var dimensions = hashValue.split('&');
if ((dimensions == null) || (dimensions.length < 4))
return;
var widthNameValuePair = dimensions[0].split('=');
var heightNameValuePair = dimensions[1].split('=');
var overflowNameValuePair = dimensions[2].split('=');
var minWidthNameValuePair = dimensions[3].split('=');
if ((widthNameValuePair == null) || (widthNameValuePair.length < 2) || (widthNameValuePair[1] == ""))
return;
if ((heightNameValuePair == null) || (heightNameValuePair.length < 2) || (heightNameValuePair[1] == ""))
return;
if ((overflowNameValuePair == null) || (overflowNameValuePair.length < 2) || (overflowNameValuePair[1] == ""))
return;
if ((minWidthNameValuePair == null) || (minWidthNameValuePair.length < 2) || (minWidthNameValuePair[1] == ""))
return;
if (WebCollage.resizeOverlay({'width': parseInt(widthNameValuePair[1]), 'height': parseInt(heightNameValuePair[1])}, minWidthNameValuePair[1]))
{
WebCollage.setOverflowValueForIframe(overflowNameValuePair[1]);
var hashIndex = window.location.href.lastIndexOf("#");
var newHref = window.location.href.substring(0, hashIndex) + "#w=&h=&ov=&min_w=";
window.location.replace(newHref);
}
}
catch(e){}
}, 200);
}
WebCollage.setOverflowValueForIframe = function(overflowStyle)
{
WebCollage.wcRunJquery (function($, jQuery) {
if ($.browser.safari)
return;
var iframe = $('iframe').eq(0);
iframe.css({'overflow' : overflowStyle});
if (overflowStyle == 'hidden')
iframe.attr('scrolling','no');
else
iframe.attr('scrolling','auto');
});
}
WebCollage.resizeOverlay = function(requiredIframeDimensions, minWidth)
{
var overlay = window.WebCollage.HighSlide.getExpander();
if (!overlay)
return false;
var contractWhenMovingToSmallerTab = true;
WebCollage.wcRunJquery (function($, jQuery) {
var contentDiv = $(WebCollage.getActiveOverlay($)).find('.highslide-html-content');
var currentWrapperWidth = contentDiv.get(0).offsetWidth;
var currentWrapperHeight = contentDiv.get(0).offsetHeight;
requiredIframeDimensions.height = WebCollage.adjustRequiredHeightIfNecessary($, overlay, requiredIframeDimensions.height);
var iframe = $(contentDiv.get(0)).find('iframe');
var divWrapperWidth = requiredIframeDimensions.width + (currentWrapperWidth - iframe.get(0).offsetWidth);
var divWrapperHeight = requiredIframeDimensions.height + (currentWrapperHeight - iframe.get(0).offsetHeight);
var resizeWidth = !WebCollage.isOverlayAlreadyPositioned || currentWrapperWidth < divWrapperWidth || contractWhenMovingToSmallerTab;
var resizeHeight = !WebCollage.isOverlayAlreadyPositioned || currentWrapperHeight < divWrapperHeight || contractWhenMovingToSmallerTab;
var maxDelta = Math.max(Math.abs(divWrapperWidth-currentWrapperWidth), Math.abs(divWrapperHeight-currentWrapperHeight));
var step = 0;
var stepWidth = 30;
var minSmoothness = 1;
if ($.browser.msie)
{
stepWidth = 250; //ie is transitions really slowly when it's resizing.
minSmoothness = 2; //in ie when this value is 1 after the resize the content window is blank so we always need atleast 2 resizes.
}
var smoothness = Math.max(minSmoothness, Math.floor(maxDelta/stepWidth));
var stepTime = 10;
var resizeWidthTo = currentWrapperWidth;
var resizeHeightTo = currentWrapperHeight;
var timerId =
setInterval(function () {
++step;
if (step <= smoothness)
{
if (resizeWidth)
resizeWidthTo = (((step * divWrapperWidth) + ((smoothness-step)*currentWrapperWidth)))/smoothness;
if (resizeHeight)
resizeHeightTo = (((step * divWrapperHeight) + ((smoothness-step)*currentWrapperHeight)))/smoothness;
overlay.resizeTo(resizeWidthTo, resizeHeightTo);
if (!WebCollage.isOverlayAlreadyPositioned && resizeWidth)
{
var newXPosition = overlay.x.pos - (stepWidth/2);
if (newXPosition > 70)
overlay.moveTo(newXPosition, overlay.y.pos);
}
}
if (step == smoothness)
{
clearInterval(timerId);
WebCollage.isOverlayAlreadyPositioned = true;
overlay.minWidth = minWidth;
//overlay.x.full describes the content width when the overlay is first opened, which means the value can be very small.
//The overlay's minimun size is the minimum between x.full and the minWidth provided.
//We want minWidth to always win this battle.
overlay.x.full = minWidth;
}
}, stepTime);
});
return true;
}
WebCollage.adjustRequiredHeightIfNecessary = function($, overlay, height)
{
var viewportHeight = $(window).height();
var maxHeight = viewportHeight - 130; //extra pixels are for border around iframe
if (height < 540 || height < maxHeight)
return height;
return Math.max(maxHeight, 540);
}
WebCollage.getActiveOverlay = function($)
{
var allOverlays = $('.wc-overlay');
if (allOverlays.length == 0)
return undefined;
var currentActiveOverlay = undefined;
for (var i = 0; i < allOverlays.length; i++)
{
if ((allOverlays[i].id != "") &&
(allOverlays[i].style['display'] != 'none'))
{
return allOverlays[i];
}
}
}
WebCollage.createFlashPreloader = function(e, $, preloaderImgSrc)
{
var flash = $("#" + e.id);
var flashWidth = flash.attr("width");
var flashHeight = flash.attr("height");
flash.attr('style', 'visibility:hidden');
var div = flash.parent();
flash = flash.get(0);
var img = $(document.createElement('img')).addClass('wc-loading-image');
var left = (flashWidth - 48)/2;
var top = (flashHeight - 48)/2;
var style = 'margin-left:' + left + 'px !important; margin-top:' + top + 'px !important;';
img.attr('style', style);
img.attr('src', preloaderImgSrc);
var outerIntervalId = setInterval(function() {
if (parseInt(flash.PercentLoaded()) < 95)
{
div.prepend(img);
var innerIntervalId = setInterval(function() {
if (parseInt(flash.PercentLoaded()) >= 95)
{
clearInterval(innerIntervalId);
$("#" + e.id).attr('style', 'visibility:visible !important');
$('.wc-loading-image').remove();
}
}, 200);
}
else
{
$("#" + e.id).attr('style', 'visibility:visible !important');
}
clearInterval(outerIntervalId);
}, 1000);
}
WebCollage.playFlashMovie = function(id)
{
var $ = WebCollage.jQuery15;
$("#wc-flash-" + id + "-play-div").attr({style: "display:none !important"});
$("#wc-flash-" + id + "-stop-div").attr({style: "display:block !important"});
var errorText = "You either have JavaScript turned off or an old version of Adobe's Flash Player";
var errorLink = $(document.createElement('a')).attr({href:'http://www.macromedia.com/go/getflashplayer/', target:'_blank'}).html('Get the latest Flash player');
var errorDiv = $(document.createElement('div')).addClass('no-flash-error').append(errorText).append($(document.createElement('br'))).append(errorLink);
$("#wc-flash-" + id + "-div").html(errorDiv);
var flashWrapper = $("#wc-flash-" + id + "-div-wrapper");
var so = new WebCollage.SWFObject15(flashWrapper.attr("wcobj"), "wc-flash-" + id + "-div", flashWrapper.attr("wcobj-width"), flashWrapper.attr("wcobj-height"), flashWrapper.attr("wcobj-version"), 'white');
var flashvars = eval(flashWrapper.attr("wcobj-flashvars"));
if(typeof flashvars != "undefined")
{
so.setVariables(flashvars);
}
var params = eval(flashWrapper.attr("wcobj-params"));
if(typeof params != "undefined")
{
so.setParams(params);
}
so.addParam("allowScriptAccess", "always");
so.addParam("base", flashWrapper.attr("wcobj-base"));
if(flashWrapper.attr("wcobj-enable-wc-preloader") && parseInt(flashWrapper.attr("wcobj-size")) > 250)
{
so.setCallback(function(e){WebCollage.createFlashPreloader(e, $, flashWrapper.attr("wcobj-preloader-img"))});
}
so.write("wc-flash-" + id + "-div");
WebCollage.wcReportEvent('asset-view', {'asset': flashWrapper.attr("wcobj-assetview-url")});
}
WebCollage.stopFlashMovie = function(id)
{
var $ = WebCollage.jQuery15;
$("#wc-flash-" + id + "-stop-div").attr({style: 'display:none !important'});
$("#wc-flash-" + id + "-play-div").attr({style: 'display:block !important'});
var flashWrapper = $("#wc-flash-" + id + "-div-wrapper");
var w = flashWrapper.attr("wcobj-width");
var h = flashWrapper.attr("wcobj-height")
var topMargin = (h - 62) / 2;
var leftMargin = (w - 62) / 2;
var topMarginCss = 'top:' + topMargin + ' !important; left:' + leftMargin + ' !important; position: absolute !important; z-index: 5 !important';
var centeredThumbnail = $(document.createElement('a')).attr({href: "javascript:WebCollage.playFlashMovie(" + id + ")"}).append($(document.createElement('img')).attr({src:flashWrapper.attr("wcobj-play-img-url"), style: topMarginCss, alt:flashWrapper.attr("wcobj-play-link-text"), title:flashWrapper.attr("wcobj-play-link-text")}));
var backgroundCss = "z-index:0 !important; width:" + w + "px !important; height:" + h + "px !important; position: absolute !important;top: 0 !important; left:0 !important;";
var backgroundImage = $(document.createElement('img')).attr({src:flashWrapper.attr("wcobj-play-img-background-url"), style: backgroundCss});
var flashDiv = $(document.createElement('div')).attr({id: "wc-flash-" + id + "-div"});
$("#wc-flash-" + id + "-div-wrapper").empty();
$("#wc-flash-" + id + "-div-wrapper").append(flashDiv);
$("#wc-flash-" + id + "-div").append(backgroundImage);
$("#wc-flash-" + id + "-div").append(centeredThumbnail);
}
WebCollage.handleGalleriaInSafariAndInIframeBug = function ()
{
WebCollage.wcRunJquery (function($, jQuery) {
if ($.browser.safari && window.self != window.top)
$.historyCheck = function(){};
});
}
}