var cfgLightbox = {
	overlayBgColor: '#ccc',
	overlayOpacity: 0.6,
	containerResizeSpeed: 350,
	txtOf: 'od'
};

$(function ($) {
	// menu animation
	$('#navigation li:not(.active)').hover(
		function () { $(this).stop().animate({ top: '6px'}, 120) }, 
		function () { $(this).stop().animate({ top: '0px'}, 120) }
	);

	// smooth scroller handler
	var smoothScroll = function (e, p) {
		var cl = document.location.href, hx = cl.indexOf('#'),
			anchor = this.href.replace(cl.substr(0, hx<0? cl.length: hx), '');
		
		if ('#' !== anchor.charAt(0)) 
			return;
		
		var target = $('a[name=' + anchor.substr(1) + ']');
		p.scrollTo(target, 1200);
		
		e.preventDefault();
	}
	
	// hook smooth scroller on all links to anchors
	$('a[href^=#]').click(function (e) { smoothScroll.call(this, e, $) });
	
	// quick-menu modal window
	var qmw = $('div#quick-menu-window');
	if (qmw.length>0) qmw.jqm({ 
		modal: false, 
		trigger: $('#quick-menu'),
		target: $('#quick-menu-window .content'),
		url: $('#quick-menu .slide a:first').attr('href'),
		
		onShow: function (obj) {
			if (!obj.c.loaded)
				obj.c.target.load([obj.c.url, '.quick-menu-content:first'].join(' '), {}, function () {
						obj.c.target.removeClass('loading');
						obj.c.loaded = true;
						
						$('a[href^=#]', obj.c.target).click(function (e) { smoothScroll.call( this, e, $('div#quick-menu-window .content')) });
					});
			obj.w.show();
		},
			
		onHide: function (obj) {
			obj.o.remove(); obj.w.hide();
		}
	});
	
	// generic modal window
	var mw = $('div#modal-window');
	if (mw.length>0) mw.jqm({
		modal: false, 
		trigger: $('a.action-login, a.action-register, a.action-basket'),
		target: $('div#modal-window .content'),
			
		onShow: function (obj) {
			obj.c.target.load([obj.t.href, '#content .action-form:first-child'].join(' '), {}, function () { 
					obj.c.target.removeClass('loading'); });
			$('div#modal-window .header').html(obj.t.title || '');
			obj.w.show();
		},
		
		onHide: function (obj) {
			obj.c.target.html('<br><br><br><br>'); obj.c.target.addClass('loading'); 
			obj.o.remove(); obj.w.hide();
		}
	});
	
	// logout action
	$('a.action-logout').click(function(e) {
		e.preventDefault();
		if (window.confirm('Da li ste sigurni?'))
			document.location.href = this.href;
		
	});
});

// Included libraries

/*
 * jqModal - Minimalist Modaling with jQuery
 *
 * Copyright (c) 2007 Brice Burgess <bhb@iceburg.net>, http://www.iceburg.net
 * Licensed under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 * 
 * $Version: 2007.08.17 +r11
 * 
 */
(function(E){E.fn.jqm=function(F){var A={zIndex:3000,overlay:50,overlayClass:"jqmOverlay",closeClass:"jqmClose",trigger:".jqModal",ajax:false,target:false,modal:false,toTop:false,onShow:false,onHide:false,onLoad:false};return this.each(function(){if(this._jqm){return}N++;this._jqm=N;L[N]={c:E.extend(A,F),a:false,w:E(this).addClass("jqmID"+N),s:N};if(A.trigger){E(this).jqmAddTrigger(A.trigger)}})};E.fn.jqmAddClose=function(A){K(this,A,"jqmHide");return this};E.fn.jqmAddTrigger=function(A){K(this,A,"jqmShow");return this};E.fn.jqmShow=function(A){return this.each(function(){if(!L[this._jqm].a){E.jqm.open(this._jqm,A)}})};E.fn.jqmHide=function(A){return this.each(function(){if(L[this._jqm].a){E.jqm.close(this._jqm,A)}})};E.jqm={hash:{},open:function(U,T){var O=L[U],P=O.c,H="."+P.closeClass,Q=(/^\d+$/.test(O.w.css("z-index")))?O.w.css("z-index"):P.zIndex,F=E("<div></div>").css({height:"100%",width:"100%",position:"fixed",left:0,top:0,"z-index":Q-1,opacity:P.overlay/100});O.t=T;O.a=true;O.w.css("z-index",Q);if(P.modal){if(!B[0]){M("bind")}B.push(U);F.css("cursor","wait")}else{if(P.overlay>0){O.w.jqmAddClose(F)}else{F=false}}O.o=(F)?F.addClass(P.overlayClass).prependTo("body"):false;if(D){E("html,body").css({height:"100%",width:"100%"});if(F){F=F.css({position:"absolute"})[0];for(var R in {Top:1,Left:1}){F.style.setExpression(R.toLowerCase(),"(_=(document.documentElement.scroll"+R+" || document.body.scroll"+R+"))+'px'")}}}if(P.ajax){var A=P.target||O.w,S=P.ajax,A=(typeof A=="string")?E(A,O.w):E(A),S=(S.substr(0,1)=="@")?E(T).attr(S.substring(1)):S;A.load(S,function(){if(P.onLoad){P.onLoad.call(this,O)}if(H){O.w.jqmAddClose(E(H,O.w))}J(O)})}else{if(H){O.w.jqmAddClose(E(H,O.w))}}if(P.toTop&&O.o){O.w.before('<span id="jqmP'+O.w[0]._jqm+'"></span>').insertAfter(O.o)}(P.onShow)?P.onShow(O):O.w.show();J(O);return false},close:function(F){var A=L[F];A.a=false;if(B[0]){B.pop();if(!B[0]){M("unbind")}}if(A.c.toTop&&A.o){E("#jqmP"+A.w[0]._jqm).after(A.w).remove()}if(A.c.onHide){A.c.onHide(A)}else{A.w.hide();if(A.o){A.o.remove()}}return false}};var N=0,L=E.jqm.hash,B=[],D=E.browser.msie&&(E.browser.version=="6.0"),G=E('<iframe src="javascript:false;document.write(\'\');" class="jqm"></iframe>').css({opacity:0}),J=function(A){if(D){if(A.o){A.o.html('<p style="width:100%;height:100%"/>').prepend(G)}else{if(!E("iframe.jqm",A.w)[0]){A.w.prepend(G)}}}I(A)},I=function(A){try{E(":input:visible",A.w)[0].focus()}catch(F){}},M=function(A){E()[A]("keypress",C)[A]("keydown",C)[A]("mousedown",C)},C=function(H){var A=L[B[B.length-1]],F=(!E(H.target).parents(".jqmID"+A.s)[0]);if(F){I(A)}return !F},K=function(A,H,O){var F=[];A.each(function(){F.push(this._jqm)});E(H).each(function(){if(this[O]){E.extend(this[O],F)}else{this[O]=F;E(this).click(function(){for(var P in {jqmShow:1,jqmHide:1}){for(var Q in this[P]){if(L[this[P][Q]]){L[this[P][Q]].w[P](this)}}}return false})}})}})(jQuery);

/**
 * jQuery.ScrollTo - Easy element scrolling using jQuery.
 * Copyright (c) 2007-2008 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
 * Dual licensed under MIT and GPL.
 * Date: 9/11/2008
 * @author Ariel Flesler
 * @version 1.4
 *
 * http://flesler.blogspot.com/2007/10/jqueryscrollto.html
 */
(function(B){var A=B.scrollTo=function(D,F,E){B(window).scrollTo(D,F,E)};A.defaults={axis:"y",duration:1};A.window=function(D){return B(window).scrollable()};B.fn.scrollable=function(){return this.map(function(){var D=this.parentWindow||this.defaultView,G=this.nodeName=="#document"?D.frameElement||D:this,F=G.contentDocument||(G.contentWindow||G).document,E=G.setInterval;return G.nodeName=="IFRAME"||E&&B.browser.safari?F.body:E?F.documentElement:this})};B.fn.scrollTo=function(F,E,D){if(typeof E=="object"){D=E;E=0}if(typeof D=="function"){D={onAfter:D}}D=B.extend({},A.defaults,D);E=E||D.speed||D.duration;D.queue=D.queue&&D.axis.length>1;if(D.queue){E/=2}D.offset=C(D.offset);D.over=C(D.over);return this.scrollable().each(function(){var H=this,N=B(H),M=F,G,L={},K=N.is("html,body");switch(typeof M){case"number":case"string":if(/^([+-]=)?\d+(px)?$/.test(M)){M=C(M);break}M=B(M,this);case"object":if(M.is||M.style){G=(M=B(M)).offset()}}B.each(D.axis.split(""),function(O,V){var T=V=="x"?"Left":"Top",R=T.toLowerCase(),U="scroll"+T,S=H[U],Q=V=="x"?"Width":"Height",P=Q.toLowerCase();if(G){L[U]=G[R]+(K?0:S-N.offset()[R]);if(D.margin){L[U]-=parseInt(M.css("margin"+T))||0;L[U]-=parseInt(M.css("border"+T+"Width"))||0}L[U]+=D.offset[R]||0;if(D.over[R]){L[U]+=M[P]()*D.over[R]}}else{L[U]=M[R]}if(/^\d+$/.test(L[U])){L[U]=L[U]<=0?0:Math.min(L[U],I(Q))}if(!O&&D.queue){if(S!=L[U]){J(D.onAfterFirst)}delete L[U]}});J(D.onAfter);function J(O){N.animate(L,E,D.easing,O&&function(){O.call(this,F,D)})}function I(O){var Q="scroll"+O,P=H.ownerDocument;return K?Math.max(P.documentElement[Q],P.body[Q]):H[Q]}}).end()};function C(D){return typeof D=="object"?D:{top:D,left:D}}})(jQuery);

/**
 * jQuery lightBox plugin
 * This jQuery plugin was inspired and based on Lightbox 2 by Lokesh Dhakar (http://www.huddletogether.com/projects/lightbox2/)
 * and adapted to me for use like a plugin from jQuery.
 * @name jquery-lightbox-0.5.js
 * @author Leandro Vieira Pinho - http://leandrovieira.com
 * @version 0.5
 * @date April 11, 2008
 * @category jQuery plugin
 * @copyright (c) 2008 Leandro Vieira Pinho (leandrovieira.com)
 * @license CC Attribution-No Derivative Works 2.5 Brazil - http://creativecommons.org/licenses/by-nd/2.5/br/deed.en_US
 * @example Visit http://leandrovieira.com/projects/jquery/lightbox/ for more informations about this jQuery plugin
 */
(function(A){A.fn.lightBox=function(P){P=jQuery.extend({overlayBgColor:"#000",overlayOpacity:0.8,fixedNavigation:false,imageLoading:"ui/lightbox-ico-loading.gif",imageBtnPrev:"ui/lightbox-btn-prev.gif",imageBtnNext:"ui/lightbox-btn-next.gif",imageBtnClose:"ui/lightbox-btn-close.gif",imageBlank:"ui/lightbox-blank.gif",containerBorderSize:10,containerResizeSpeed:400,txtImage:"Image",txtOf:"of",keyToClose:"c",keyToPrev:"p",keyToNext:"n",imageArray:[],activeImage:0},P);var I=this;function R(){O(this,I);return false}function O(V,U){A("embed, object, select").css({visibility:"hidden"});C();P.imageArray.length=0;P.activeImage=0;if(U.length==1){P.imageArray.push(new Array(V.getAttribute("href"),V.getAttribute("title")))}else{for(var T=0;T<U.length;T++){P.imageArray.push(new Array(U[T].getAttribute("href"),U[T].getAttribute("title")))}}while(P.imageArray[P.activeImage][0]!=V.getAttribute("href")){P.activeImage++}L()}function C(){A("body").append('<div id="jquery-overlay"></div><div id="jquery-lightbox"><div id="lightbox-container-image-box"><div id="lightbox-container-image"><img id="lightbox-image"><div style="" id="lightbox-nav"><a href="#" id="lightbox-nav-btnPrev"></a><a href="#" id="lightbox-nav-btnNext"></a></div><div id="lightbox-loading"><a href="#" id="lightbox-loading-link"><img src="'+P.imageLoading+'"></a></div></div></div><div id="lightbox-container-image-data-box"><div id="lightbox-container-image-data"><div id="lightbox-image-details"><span id="lightbox-image-details-caption"></span><span id="lightbox-image-details-currentNumber"></span></div><div id="lightbox-secNav"><a href="#" id="lightbox-secNav-btnClose"><img src="'+P.imageBtnClose+'"></a></div></div></div></div>');var T=F();A("#jquery-overlay").css({backgroundColor:P.overlayBgColor,opacity:P.overlayOpacity,width:T[0],height:T[1]}).fadeIn();var U=H();A("#jquery-lightbox").css({top:U[1]+(T[3]/10),left:U[0]}).show();A("#jquery-overlay,#jquery-lightbox").click(function(){B()});A("#lightbox-loading-link,#lightbox-secNav-btnClose").click(function(){B();return false});A(window).resize(function(){var V=F();A("#jquery-overlay").css({width:V[0],height:V[1]});var W=H();A("#jquery-lightbox").css({top:W[1]+(V[3]/10),left:W[0]})})}function L(){A("#lightbox-loading").show();if(P.fixedNavigation){A("#lightbox-image,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber").hide()}else{A("#lightbox-image,#lightbox-nav,#lightbox-nav-btnPrev,#lightbox-nav-btnNext,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber").hide()}var T=new Image();T.onload=function(){A("#lightbox-image").attr("src",P.imageArray[P.activeImage][0]);J(T.width,T.height);T.onload=function(){}};T.src=P.imageArray[P.activeImage][0]}function J(W,Z){var T=A("#lightbox-container-image-box").width();var Y=A("#lightbox-container-image-box").height();var X=(W+(P.containerBorderSize*2));var V=(Z+(P.containerBorderSize*2));var U=T-X;var a=Y-V;A("#lightbox-container-image-box").animate({width:X,height:V},P.containerResizeSpeed,function(){G()});if((U==0)&&(a==0)){if(A.browser.msie){N(250)}else{N(100)}}A("#lightbox-container-image-data-box").css({width:W});A("#lightbox-nav-btnPrev,#lightbox-nav-btnNext").css({height:Z+(P.containerBorderSize*2)})}function G(){A("#lightbox-loading").hide();A("#lightbox-image").fadeIn(function(){K();S()});Q()}function K(){A("#lightbox-container-image-data-box").slideDown("fast");A("#lightbox-image-details-caption").hide();if(P.imageArray[P.activeImage][1]){A("#lightbox-image-details-caption").html(P.imageArray[P.activeImage][1]).show()}if(P.imageArray.length>1){A("#lightbox-image-details-currentNumber").html(P.txtImage+" "+(P.activeImage+1)+" "+P.txtOf+" "+P.imageArray.length).show()}}function S(){A("#lightbox-nav").show();A("#lightbox-nav-btnPrev,#lightbox-nav-btnNext").css({background:"transparent url("+P.imageBlank+") no-repeat"});if(P.activeImage!=0){if(P.fixedNavigation){A("#lightbox-nav-btnPrev").css({background:"url("+P.imageBtnPrev+") left 15% no-repeat"}).unbind().bind("click",function(){P.activeImage=P.activeImage-1;L();return false})}else{A("#lightbox-nav-btnPrev").unbind().hover(function(){A(this).css({background:"url("+P.imageBtnPrev+") left 15% no-repeat"})},function(){A(this).css({background:"transparent url("+P.imageBlank+") no-repeat"})}).show().bind("click",function(){P.activeImage=P.activeImage-1;L();return false})}}if(P.activeImage!=(P.imageArray.length-1)){if(P.fixedNavigation){A("#lightbox-nav-btnNext").css({background:"url("+P.imageBtnNext+") right 15% no-repeat"}).unbind().bind("click",function(){P.activeImage=P.activeImage+1;L();return false})}else{A("#lightbox-nav-btnNext").unbind().hover(function(){A(this).css({background:"url("+P.imageBtnNext+") right 15% no-repeat"})},function(){A(this).css({background:"transparent url("+P.imageBlank+") no-repeat"})}).show().bind("click",function(){P.activeImage=P.activeImage+1;L();return false})}}M()}function M(){A(document).keydown(function(T){D(T)})}function E(){A(document).unbind()}function D(T){if(T==null){keycode=event.keyCode;escapeKey=27}else{keycode=T.keyCode;escapeKey=T.DOM_VK_ESCAPE}key=String.fromCharCode(keycode).toLowerCase();if((key==P.keyToClose)||(key=="x")||(keycode==escapeKey)){B()}if((key==P.keyToPrev)||(keycode==37)){if(P.activeImage!=0){P.activeImage=P.activeImage-1;L();E()}}if((key==P.keyToNext)||(keycode==39)){if(P.activeImage!=(P.imageArray.length-1)){P.activeImage=P.activeImage+1;L();E()}}}function Q(){if((P.imageArray.length-1)>P.activeImage){objNext=new Image();objNext.src=P.imageArray[P.activeImage+1][0]}if(P.activeImage>0){objPrev=new Image();objPrev.src=P.imageArray[P.activeImage-1][0]}}function B(){A("#jquery-lightbox").remove();A("#jquery-overlay").fadeOut(function(){A("#jquery-overlay").remove()});A("embed, object, select").css({visibility:"visible"})}function F(){var V,T;if(window.innerHeight&&window.scrollMaxY){V=window.innerWidth+window.scrollMaxX;T=window.innerHeight+window.scrollMaxY}else{if(document.body.scrollHeight>document.body.offsetHeight){V=document.body.scrollWidth;T=document.body.scrollHeight}else{V=document.body.offsetWidth;T=document.body.offsetHeight}}var U,W;if(self.innerHeight){if(document.documentElement.clientWidth){U=document.documentElement.clientWidth}else{U=self.innerWidth}W=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){U=document.documentElement.clientWidth;W=document.documentElement.clientHeight}else{if(document.body){U=document.body.clientWidth;W=document.body.clientHeight}}}if(T<W){pageHeight=W}else{pageHeight=T}if(V<U){pageWidth=V}else{pageWidth=U}arrayPageSize=new Array(pageWidth,pageHeight,U,W);return arrayPageSize}function H(){var U,T;if(self.pageYOffset){T=self.pageYOffset;U=self.pageXOffset}else{if(document.documentElement&&document.documentElement.scrollTop){T=document.documentElement.scrollTop;U=document.documentElement.scrollLeft}else{if(document.body){T=document.body.scrollTop;U=document.body.scrollLeft}}}arrayPageScroll=new Array(U,T);return arrayPageScroll}function N(V){var U=new Date();T=null;do{var T=new Date()}while(T-U<V)}return this.unbind("click").click(R)}})(jQuery);

/* ------------------------------------------------------------------------
	s3Slider
	
	Developped By: Boban Kariik -> http://www.serie3.info/
        CSS Help: Mészáros Róbert -> http://www.perspectived.com/
	Version: 1.0
	
	Copyright: Feel free to redistribute the script/modify it, as
			   long as you leave my infos at the top.
------------------------------------------------------------------------- */
(function(A){A.fn.s3Slider=function(H){var E=this,L=H.timeOut||4000,G=null,D=null,K=true,F=false,I=this.find("ul li"),B=this.find("ul li span");I.each(function(M){A(I[M]).mouseover(function(){F=true});A(I[M]).mouseout(function(){F=false;C(true)})});var C=function(M){var N=(M)?(L/2):L;N=(K)?10:N;if(I.length>0){D=setTimeout(J,N)}};var J=function(){G=(G!=null)?G:I[(I.length-1)];var M=jQuery.inArray(G,I)+1;M=(M==I.length)?0:(M-1);var N=A(E).width()*M;if(K==true){if(!F){A(I[M]).fadeIn((L/6),function(){if(A(B[M]).css("bottom")==0){A(B[M]).slideUp((L/6),function(){K=false;G=I[M];if(!F){C(false)}})}else{A(B[M]).slideDown((L/6),function(){K=false;G=I[M];if(!F){C(false)}})}})}}else{if(!F){if(A(B[M]).css("bottom")==0){A(B[M]).slideDown((L/6),function(){A(I[M]).fadeOut((L/6),function(){K=true;G=I[(M+1)];if(!F){C(false)}})})}else{A(B[M]).slideUp((L/6),function(){A(I[M]).fadeOut((L/6),function(){K=true;G=I[(M+1)];if(!F){C(false)}})})}}}};J()}})(jQuery);

/* jqKwick */
(function(A){A.fn.jKwick=function(B){B=A.extend({min:0,max:0,mid:0,speed:250,easing:"swing"},B||{});var D=A("ul",this),G=A("li",D),J=G.length,H=null,C=null,E=true,F=false,I=function(){};G.hover(function(){if(!F){F=true;C=A(this);if(E){C.animate({width:B.max},B.speed);G.not(this).animate({width:B.min},B.speed,function(){H=C;E=F=false})}else{var L=C.width(),K=H.width();C.animate({width:B.max},{duration:B.speed,easing:B.easing,step:function(M){H.width(Math.ceil(K-(M-L)))},complete:function(){H=C;F=false}})}}},I);D.hover(I,function(){G.animate({width:B.mid},B.speed);E=true})}})(jQuery);

/* jQuery SWFObject */
(function(A){A.flashPlayerVersion=function(){var D,B=null,I=false,H="ShockwaveFlash.ShockwaveFlash";if(!(D=navigator.plugins["Shockwave Flash"])){try{B=new ActiveXObject(H+".7")}catch(G){try{B=new ActiveXObject(H+".6");D=[6,0,21];B.AllowScriptAccess="always"}catch(F){if(D&&D[0]===6){I=true}}if(!I){try{B=new ActiveXObject(H)}catch(E){D="X 0,0,0"}}}if(!I&&B){try{D=B.GetVariable("$version")}catch(C){}}}else{D=D.description}D=D.match(/^[A-Za-z\s]*?(\d+)(\.|,)(\d+)(\s+r|,)(\d+)/);return[D[1]*1,D[3]*1,D[5]*1]}();A.flashExpressInstaller="expressInstall.swf";A.hasFlashPlayer=(A.flashPlayerVersion[0]!==0);A.hasFlashPlayerVersion=function(C){var B=A.flashPlayerVersion;C=(/string|integer/.test(typeof C))?C.toString().split("."):C;return(C)?(B[0]>=(C.major||C[0]||B[0])&&B[1]>=(C.minor||C[1]||B[1])&&B[2]>=(C.release||C[2]||B[2])):(B[0]!==0)};A.flash=function(M){if(!A.hasFlashPlayer){return false}var C=M.swf||"",K=M.params||{},E=document.createElement("body"),B,L,H,D,J,I,G,F;M.height=M.height||180;M.width=M.width||320;if(M.hasVersion&&!A.hasFlashPlayerVersion(M.hasVersion)){A.extend(M,{id:"SWFObjectExprInst",height:Math.max(M.height,137),width:Math.max(M.width,214)});C=M.expressInstaller||A.flashExpressInstaller;K={flashvars:{MMredirectURL:window.location.href,MMplayerType:(A.browser.msie&&A.browser.win)?"ActiveX":"PlugIn",MMdoctitle:document.title.slice(0,47)+" - Flash Player Installation"}}}if(M.flashvars&&typeof K==="object"){A.extend(K,{flashvars:M.flashvars})}for(J in (I=["swf","expressInstall","hasVersion","params","flashvars"])){delete M[I[J]]}B=[];for(J in M){if(typeof M[J]==="object"){L=[];for(I in M[J]){L.push(I.replace(/([A-Z])/,"-$1").toLowerCase()+":"+M[J][I]+";")}M[J]=L.join("")}B.push(J+'="'+M[J]+'"')}M=B.join(" ");if(typeof K==="object"){B=[];for(J in K){if(typeof K[J]==="object"){L=[];for(I in K[J]){if(typeof K[J][I]==="object"){H=[];for(G in K[J][I]){if(typeof K[J][I][G]==="object"){D=[];for(F in K[J][I][G]){D.push(F.replace(/([A-Z])/,"-$1").toLowerCase()+":"+K[J][I][G][F]+";")}K[J][I][G]=D.join("")}H.push(G+"{"+K[J][I][G]+"}")}K[J][I]=H.join("")}L.push(window.escape(I)+"="+window.escape(K[J][I]))}K[J]=L.join("&amp;")}B.push('<PARAM NAME="'+J+'" VALUE="'+K[J]+'">')}K=B.join("")}if(!(/style=/.test(M))){M+=' style="vertical-align:text-top;"'}if(!(/style=(.*?)vertical-align/.test(M))){M=M.replace(/style="/,'style="vertical-align:text-top;')}if(A.browser.msie){M+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';K='<PARAM NAME="movie" VALUE="'+C+'">'+K}else{M+=' type="application/x-shockwave-flash" data="'+C+'"'}E.innerHTML="<OBJECT "+M+">"+K+"</OBJECT>";return A(E.firstChild)};A.fn.flash=function(C){if(!A.hasFlashPlayer){return this}var B=0,D;while((D=this.eq(B++))[0]){D.html(A.flash(A.extend({},C)));if(D[0].firstChild.getAttribute("id")==="SWFObjectExprInst"){B=this.length}}return this}}(jQuery));