/* Assets Compilation: 2010-09-07 15:33:53
     _______  ______ _______ ______   _____   ______  _____
        |    |_____/ |_____| |     \ |     | |_____/ |     |
        |    |    \_ |     | |_____/ |_____| |    \_ |_____|
*/

(function(jQuery){jQuery.fn.__bind__=jQuery.fn.bind;jQuery.fn.__unbind__=jQuery.fn.unbind;jQuery.fn.__find__=jQuery.fn.find;var hotkeys={version:'0.7.9',override:/keypress|keydown|keyup/g,triggersMap:{},specialKeys:{27:'esc',9:'tab',32:'space',13:'return',8:'backspace',145:'scroll',20:'capslock',144:'numlock',19:'pause',45:'insert',36:'home',46:'del',35:'end',33:'pageup',34:'pagedown',37:'left',38:'up',39:'right',40:'down',109:'-',112:'f1',113:'f2',114:'f3',115:'f4',116:'f5',117:'f6',118:'f7',119:'f8',120:'f9',121:'f10',122:'f11',123:'f12',191:'/'},shiftNums:{"`":"~","1":"!","2":"@","3":"#","4":"$","5":"%","6":"^","7":"&","8":"*","9":"(","0":")","-":"_","=":"+",";":":","'":"\"",",":"<",".":">","/":"?","\\":"|"},newTrigger:function(type,combi,callback){var result={};result[type]={};result[type][combi]={cb:callback,disableInInput:false};return result;}};hotkeys.specialKeys=jQuery.extend(hotkeys.specialKeys,{96:'0',97:'1',98:'2',99:'3',100:'4',101:'5',102:'6',103:'7',104:'8',105:'9',106:'*',107:'+',109:'-',110:'.',111:'/'});jQuery.fn.find=function(selector){this.query=selector;return jQuery.fn.__find__.apply(this,arguments);};jQuery.fn.unbind=function(type,combi,fn){if(jQuery.isFunction(combi)){fn=combi;combi=null;}
if(combi&&typeof combi==='string'){var selectorId=((this.prevObject&&this.prevObject.query)||(this[0].id&&this[0].id)||this[0]).toString();var hkTypes=type.split(' ');for(var x=0;x<hkTypes.length;x++){delete hotkeys.triggersMap[selectorId][hkTypes[x]][combi];}}
return this.__unbind__(type,fn);};jQuery.fn.bind=function(type,data,fn){var handle=type.match(hotkeys.override);if(jQuery.isFunction(data)||!handle){return this.__bind__(type,data,fn);}
else{var result=null,pass2jq=jQuery.trim(type.replace(hotkeys.override,''));if(pass2jq){result=this.__bind__(pass2jq,data,fn);}
if(typeof data==="string"){data={'combi':data};}
if(data.combi){for(var x=0;x<handle.length;x++){var eventType=handle[x];var combi=data.combi.toLowerCase(),trigger=hotkeys.newTrigger(eventType,combi,fn),selectorId=((this.prevObject&&this.prevObject.query)||(this[0].id&&this[0].id)||this[0]).toString();trigger[eventType][combi].disableInInput=data.disableInInput;if(!hotkeys.triggersMap[selectorId]){hotkeys.triggersMap[selectorId]=trigger;}
else if(!hotkeys.triggersMap[selectorId][eventType]){hotkeys.triggersMap[selectorId][eventType]=trigger[eventType];}
var mapPoint=hotkeys.triggersMap[selectorId][eventType][combi];if(!mapPoint){hotkeys.triggersMap[selectorId][eventType][combi]=[trigger[eventType][combi]];}
else if(mapPoint.constructor!==Array){hotkeys.triggersMap[selectorId][eventType][combi]=[mapPoint];}
else{hotkeys.triggersMap[selectorId][eventType][combi][mapPoint.length]=trigger[eventType][combi];}
this.each(function(){var jqElem=jQuery(this);if(jqElem.attr('hkId')&&jqElem.attr('hkId')!==selectorId){selectorId=jqElem.attr('hkId')+";"+selectorId;}
jqElem.attr('hkId',selectorId);});result=this.__bind__(handle.join(' '),data,hotkeys.handler)}}
return result;}};hotkeys.findElement=function(elem){if(!jQuery(elem).attr('hkId')){if(jQuery.browser.opera||jQuery.browser.safari){while(!jQuery(elem).attr('hkId')&&elem.parentNode){elem=elem.parentNode;}}}
return elem;};hotkeys.handler=function(event){var target=hotkeys.findElement(event.currentTarget),jTarget=jQuery(target),ids=jTarget.attr('hkId');if(ids){ids=ids.split(';');var code=event.which,type=event.type,special=hotkeys.specialKeys[code],character=!special&&String.fromCharCode(code).toLowerCase(),shift=event.shiftKey,ctrl=event.ctrlKey,alt=event.altKey||event.originalEvent.altKey,mapPoint=null;for(var x=0;x<ids.length;x++){if(hotkeys.triggersMap[ids[x]][type]){mapPoint=hotkeys.triggersMap[ids[x]][type];break;}}
if(mapPoint){var trigger;if(!shift&&!ctrl&&!alt){trigger=mapPoint[special]||(character&&mapPoint[character]);}
else{var modif='';if(alt)modif+='alt+';if(ctrl)modif+='ctrl+';if(shift)modif+='shift+';trigger=mapPoint[modif+special];if(!trigger){if(character){trigger=mapPoint[modif+character]||mapPoint[modif+hotkeys.shiftNums[character]]||(modif==='shift+'&&mapPoint[hotkeys.shiftNums[character]]);}}}
if(trigger){var result=false;for(var x=0;x<trigger.length;x++){if(trigger[x].disableInInput){var elem=jQuery(event.target);if(jTarget.is("input")||jTarget.is("textarea")||jTarget.is("select")||elem.is("input")||elem.is("textarea")||elem.is("select")){return true;}}
result=result||trigger[x].cb.apply(this,[event]);}
return result;}}}};window.hotkeys=hotkeys;return jQuery;})(jQuery);;
;var LayerManager=function()
{var $this=this;this.currentVisibleElement=null;this.classFlag='rfLayerVisible';this.clickBound=false;this.isClickBound=function()
{return $this.clickBound;};this.setCurrentVisibleElement=function(domElement)
{$this.currentVisibleElement=domElement;};this.getCurrentVisibleElement=function()
{return $this.currentVisibleElement;};this.clearCurrentVisibleElement=function()
{$this.currentVisibleElement=null;};this.show=function(element,options)
{element.one('triggerMe',function(){if(!this['layer'])
{this['layer']=new LayerItem(options);this.layer.setElement(this);}
if(this.layer.isShown())
{this.layer.hide();}
else
{if($this.getCurrentVisibleElement())
{$this.getCurrentVisibleElement().hide();}
this.layer.show();}}).trigger('triggerMe');};this.hide=function(element)
{element.one('triggerMe',function(){if(this['layer'])
{this.layer.hide();}}).trigger('triggerMe');}
this.registerDocumentClick=function()
{if(!$this.isClickBound())
{$(document).bind('click',$this.onDocumentClick);$(document).bind('keydown','esc',function(){if($this.getCurrentVisibleElement())
{$this.getCurrentVisibleElement().hide();}});$this.clickBound=true;}};this.unregisterDocumentClick=function()
{$(document).unbind('click');$(document).unbind('keydown');$this.clickBound=false;};this.onDocumentClick=function(e)
{var currentElement=$(e.target);var i=1000;while(!currentElement.is('html')&&!currentElement.is('body'))
{if(!i--)return true;if(currentElement.hasClass($this.classFlag))
{return true;}
currentElement=currentElement.parent();}
if($this.getCurrentVisibleElement())
{$this.getCurrentVisibleElement().hide();}
return true;};};;
;var LayerItem=function(options)
{var $this=this;var defaults={startIn:function(){},startOut:function(){},completedIn:function(){},completedOut:function(){},time:200};this.params=$.extend(defaults,options||{});this.elementObject=null;this.shown=false;this.setElement=function(obj)
{$this.elementObject=obj;};this.isShown=function()
{return $this.shown;};this.getElement=function()
{return $this.elementObject;};this.show=function()
{$this.params.startIn.call($this.getElement());var afterShow=function()
{$this.params.completedIn.call($this.getElement());LayerMgr.setCurrentVisibleElement($this);LayerMgr.registerDocumentClick();$this.shown=true;};if($this.params.time==0)
{$($this.getElement()).addClass('rfLayerVisible').show();afterShow();}
else
{$($this.getElement()).addClass('rfLayerVisible').fadeIn($this.params.time,function(){afterShow();});}};this.hide=function()
{$this.params.startOut.call($this.getElement());LayerMgr.clearCurrentVisibleElement();LayerMgr.unregisterDocumentClick();var afterHide=function()
{$this.params.completedOut.call($this.getElement());$this.shown=false;};if($this.params.time==0)
{$($this.getElement()).removeClass('rfLayerVisible').hide();afterHide();}
else
{$($this.getElement()).removeClass('rfLayerVisible').fadeOut($this.params.time,function(){afterHide();});}};};;
$(document).ready(function(){window.LayerMgr=new LayerManager();});;
$(document).ready(function(){});;
;(function($){$.fn.internalTip=function()
{var $this=this;$(this).parents('form').eq(0).submit(function(){$('input[type=text]',this).each(function(){var label=$('label[for="'+$(this).attr('id')+'"]');if(label.size())
{var tip=label.text();if($(this).val()==tip)
{$(this).val('');}}});return true;});return this.each(function(){var label=$('label[for="'+$(this).attr('id')+'"]');if(!label.size())
{return false;}
label.hide();var currentValue=$(this).val();this.tipText=label.text();if(currentValue==''||currentValue==this.tipText)
{$(this).addClass('empty').val(this.tipText);}
$(this).focus(function(){if(this.tipText==$(this).val())
{$(this).removeClass('empty').val('');}});$(this).blur(function(){var val=$(this).val()
if(val==''||val==this.tipText)
{$(this).val(this.tipText).addClass('empty');}});});}})(jQuery);;
function IncludeCSS(cssFile)
{var oHead=document.getElementsByTagName('head')[0];var oLink=document.createElement('link');oLink.type='text/css';oLink.href=cssFile;oLink.media='screen';oLink.rel='stylesheet';oHead.appendChild(oLink);};function isDev(uri)
{if(uri.indexOf("_dev")>-1)
{return true}
return false;}
function unDev(uri)
{if(isDev(uri))
{uri=uri.replace(/_dev/,'');}
return uri;}
function RemoveCSS(cssFile)
{var oHead=document.getElementsByTagName('head')[0]
var links=oHead.getElementsByTagName('link');for(var i in links)
{if(links[i]&&links[i].href==cssFile)
{links[i].parentNode.removeChild(links[i]);}};};function IncludeJS(jsFile)
{var oHead=document.getElementsByTagName('head')[0];var oScript=document.createElement('script');oScript.type='text/javascript';oScript.src=jsFile;oHead.appendChild(oScript);};function RemoveJS(jsFile)
{var oHead=document.getElementsByTagName('head')[0]
var jscripts=oHead.getElementsByTagName('script');for(var i in jscripts)
{if(jscripts[i]&&jscripts[i].src==jsFile)
{jscripts[i].parentNode.removeChild(jscripts[i]);}};};function clone(obj)
{var n={};for(var p in obj)
{n[p]=obj[p]}
return n;}
function ObjectFactory(childType,baseObject,param)
{if(typeof baseObject!='object')
{if(typeof param!='object')
{param={};}
var baseObject=new window[baseObject](param);}
if(typeof childType!='function')
{childType=window[childType];}
childType.prototype=baseObject;var $object=new childType();if(typeof $object['setObject']!='function')
{throw new Error('Dziedziczenie wymaga implementacji metody: setObject(obj) { $this = obj; }');}
$object.setObject($object);$object.superclass=baseObject;$object.superclass.setObject($object);return $object;}
function WindowOpen(Url){var screen_x=screen.width;var screen_y=screen.height;var window_width=screen_x-200;var window_height=screen_y-300;var pos_x=(screen_x/2)-(window_width/2);var pos_y=(screen_y/2)-(window_height/2);var Name='window_'+Math.round((Math.random()*1000));var W=window.open(Url,Name,'menubar=0,resizable=1,width='+window_width+',height='+window_height+',scrollbars=1,left='+pos_x+',top='+pos_y);W.focus();return W;}
function fixPrice(price)
{if(price.toString().indexOf(',')!=-1)
{return price.toString().replace(/,/,'.');}
else
{return price;}}
function parsePrice(value)
{value=parseFloat(fixPrice(value));if(isNaN(value))
{return"0.00";}
return value.toFixed(2);}
function CalcNetto(val,tax)
{val=parseFloat(fixPrice(val));if(isNaN(val))
{return'';}
var newVal=val/(1+(parseFloat(tax)/100));return parsePrice(newVal);}
function CalcBrutto(val,tax)
{val=parseFloat(fixPrice(val));if(isNaN(val))
{return'';}
var newVal=val+(val*(parseFloat(tax)/100));return parsePrice(newVal);}
function FeatureInputPrice()
{$(this).keydown(function(e){if($.inArray(e.which,[46,8,36,35,37,38,39,40,93,188,190,108,109,0])>-1)
{return true;}
if(!(e.which>=48&&e.which<=57)&&!(e.which>=96&&e.which<=105))
{return false;}
if($.trim($(this).val()).search(/^\-?([0-9]{0,10}([\.,][0-9]{0,10})?)?$/)==-1)
{return false;}});$(this).keyup(function(){$(this).val($(this).val().replace(',','.'));});$(this).blur(function(){$(this).val($.trim($(this).val()).replace(/\.0*$/,'.00'));$(this).val($.trim($(this).val()).replace(/^\./,'0.'));if($.trim($(this).val()).search(/^\-?([0-9]{1,10})$/)!=-1)
{$(this).val($.trim($(this).val())+'.00');}});}
function FeatureInputInt()
{$(this).keydown(function(e){if($.inArray(e.which,[46,8,36,35,37,38,39,40,93,109,0])>-1)
{return true;}
if(!(e.which>=48&&e.which<=57)&&!(e.which>=96&&e.which<=105))
{return false;}
if($(this).val().length>10)
{return false;}
return true;});$(this).blur(function(){$(this).val($(this).val().replace(/[^0-9\-]/,'').substring(0,11));});}
function Button(config)
{var arrType={1:'green',2:'gray'};var id='';var inputId='';var onClick='';var defaults={'value':'brak-nazwy','name':'input-unnamed','id':false,'class':'','color':1,'type':'button'}
var params=$.extend(defaults,config);if(params.id)
{id=' btn-id-'+params.id;inputId=' id="'+params.id+'"';}
var str='<div class="{class}{id}">'+'<span class="button {color}">'+'<input type="{type}" value="{value}"{inputId}{onClick} name="{name}" class="{color}"/>'+'</span>'+'</div>';str=str.replace('{class}',params['class']);str=str.replace('{id}',id);str=str.replace(/\{color\}/g,arrType[params.color]);str=str.replace('{type}',params.type);str=str.replace('{value}',params.value);str=str.replace('{inputId}',inputId);str=str.replace('{onClick}',onClick);str=str.replace('{name}',params.name);return str;}
function TruncateText(text,len,replacer)
{var endingReplacer=(replacer?replacer:'');var replacerLength=replacer.length;if(text.length>len)
{text=text.substring(0,len-replacerLength)+endingReplacer;}
return text;}
function loadAdvancedTiny(tiny,optionalConfig,id)
{var editorWidth=(optionalConfig.width)?optionalConfig.width-50:500
var renderImage=function(file)
{var width=file.getWidth();if(width>editorWidth)
{width=editorWidth;}
return'<img src='+file.getWebPath()+' alt=\"obrazek\" width="'+width+'"/>';};var baseConfig=$.extend(tinyMceAdvancedDefaults,{elements:id,setup:function(ed){ed.addButton('imagelayer',{title:'Dodaj obrazek',image:'/images/icons/16x16/graphics_add.png',onclick:function(){}});},oninit:function()
{var ed=tiny.editors[id];if(typeof RfLayer=='function'&&typeof window.medialibraryDrawer!='object')
{window.medialibraryDrawer=new RfLayer({name:'mediaLibrary',button:'a.mce_imagelayer',lazyLoadingMode:false,contentObject:new rfLayerMediaLibrary({operations:[{title:'Dodaj obrazek ',icon_class:'add_to_list',method:'AddFilesToMedia',web_path:'#',handler:function(file)
{ed.selection.setContent(renderImage(file));}}]})});window.medialibraryDrawer.Init();}
else if(typeof WindowMediaLibrary=='function')
{var medialibraryWindow=new WindowMediaLibrary({operations:[{title:'Dodaj obrazek do listy',titleMany:'Dodaj obrazki',icon_class:'add_to_list',web_path:'#',method:'AddFilesToMedia',handler:function(file)
{ed.selection.setContent(renderImage(file));medialibraryWindow.close();}}]});$('a.mce_imagelayer').click(function(){medialibraryWindow.show();});}}});tiny.init($.extend(baseConfig,optionalConfig||{}));};function loadBasicTiny(tiny,optionalConfig,id)
{var baseConfig=$.extend(tinyMceBasicDefaults,{elements:id});tiny.init($.extend(baseConfig,optionalConfig||{}));};function processMessage(message)
{if(!message)
{return"Błąd aplikacji!";}
switch(typeof message)
{case'array':return message.join(",\n");case'object':return message.join(",\n");case'string':return message
default:return message}}
function responseToObject(response)
{if(typeof response=='string')
{response=response.replace(/^<[a-z]+[^>]*>/g,'').replace(/<\/[a-z]+>$/g,'');try
{response=JSON.parse(response);}
catch(e)
{response={status:'error',message:'Błąd odpowiedzi serwera. Prosimy skontaktować się z biurem obsługi klienta.'};}}
return response;}
function XhrSuccess(response,funcs)
{var defaults={ok:function(){},error:function(message)
{if(message)
{window.alert(processMessage(message));}}};var callbacks=$.extend(defaults,funcs);if(typeof response=='object'&&typeof response['status']=='string')
{if(response.status=='ok')
{if(typeof response.value!="undefined")
{if(typeof response.message!="undefined")
{callbacks.ok(response.value,response.message);}
else
{callbacks.ok(response.value);}}
else
{callbacks.ok();}}
else
{if(typeof response.message=="undefined")
{response.message=null;}
if(typeof response.value!="undefined")
{callbacks.error(response.message,response.value);}
else
{callbacks.error(response.message);}}}
else
{window.alert('Błąd odpowiedzi Ajax. Prosimy skontaktować się z biurem obsługi klienta: tel. 801-080-350 lub (+48)12-376-09-50');}}
function paramsToObject(params)
{var slices=params.split(/[,\/]/);var obj={};var subslice,variable,value;for(var i in slices)
{if(typeof slices[i]!=='string')
{continue;}
subslice=slices[i].split(/[:\-,=]/);variable=subslice[0];obj[variable]=(subslice[1])?subslice[1]:null;}
return obj;}
function anchor(value,key)
{var anchor=value.split('#')[1];if(typeof key!='undefined')
{var params=paramsToObject(anchor);anchor=params[key];}
return anchor;}
function loadScriptsCascade($,files,callback)
{var file=files.shift();if(!loadScriptsCascade.files)
{loadScriptsCascade.files=[];}
var loadNext=function()
{if(!files.length)
{callback();}
else
{loadScriptsCascade($,files,callback);}};if($.inArray(file,loadScriptsCascade.files)>-1)
{loadNext();}
else
{loadScriptsCascade.files.push(file);$.getScript(file,loadNext);}}
function sanitizeChars(value)
{value=$.trim(value.toLowerCase());var chars=[[RegExp(/ł/g),'l'],[RegExp(/ę/g),'e'],[RegExp(/ó/g),'o'],[RegExp(/ą/g),'a'],[RegExp(/ś/g),'s'],[RegExp(/ż/g),'z'],[RegExp(/ź/g),'z'],[RegExp(/ć/g),'c'],[RegExp(/ń/g),'n'],[RegExp(/Ł/g),'l'],[RegExp(/Ę/g),'e'],[RegExp(/Ó/g),'o'],[RegExp(/Ą/g),'a'],[RegExp(/Ś/g),'s'],[RegExp(/Ż/g),'z'],[RegExp(/Ź/g),'z'],[RegExp(/Ć/g),'c'],[RegExp(/Ń/g),'n']];var n=chars.length;for(var i=0;i<n;i++)
{value=value.replace(chars[i][0],chars[i][1]);}
return value.replace(/[^a-z0-9\-]+/ig,'-');}
function namespace(name)
{var subnames=[];var subname;var root=window;if(name.indexOf('.')!=-1)
{subnames=name.split('.');}
else
{subnames.push(name);}
for(var i in subnames)
{subname=subnames[i];if(typeof root[subname]!='object')
{root[subname]={};root=root[subname];}}};
var FlashConfiguration={};var ShowLoading=function(){};var HideLoading=function(){};var variantsData=[];var players=[];var c=function(href)
{$('#categories > ul').menuTree({currentHref:href,slide:100});};var wLoad=function(id,mode,size,place,animation)
{var player;if(animation&&animation.enabled)
{switch(animation.effect)
{case'fading':player=new Player.Fade(id,mode,size,place,animation);break;default:player=new Player.Slide(id,mode,place,size,animation);break;}}
else
{player=new Player.Static(id,mode,size,place);}
if(typeof player=='object')
{player.init();window.players.push(player);}};var verticalStars=function(){var cssClass=($(this).attr('class'));var rated=cssClass.substring(cssClass.indexOf('rated_')+6);var appendString='<ul class="rate rate_small" style="float: right;">';var i=rated;for(i;i<=4;i++)
{appendString=appendString+'<li><div><span class="rating_star_empty"></span></div></li>';}
if(rated!=parseInt(rated))
{appendString=appendString+'<li><div><span class="rating_star_half"></span></div></li>';}
for(var i=1;i<=rated;i++)
{appendString=appendString+'<li><div><span class="rating_star"></span></div></li>';}
appendString=appendString+'</ul>';var element=$('td.star_rating div',this);element.append(appendString);};var horizontalStars=function(){var cssClass=($(this).attr('class'));var productId=cssClass.substring(cssClass.indexOf('product_')+8,cssClass.indexOf(' ',cssClass.indexOf('product_')));var rated=cssClass.substring(cssClass.indexOf('rated_')+6);var small=cssClass.indexOf('rate_small');var voted=cssClass.indexOf('rate_small');var appendString='<ul class="rate';if(small!=-1)
{appendString=appendString+' rate_small';}
if(voted!=-1)
{appendString=appendString+' voted';}
appendString=appendString+'">';var i=1;for(i;i<=rated;i++)
{if(small!=-1)
{appendString=appendString+'<li><div><span class="rating_star"></span></div></li>';}
else
{appendString=appendString+'<li><div><a class="rating_star" href="'+_baseUri+'add_rate/product_id/'+productId+'/rate/'+i+'"></a></div></li>';}}
if(rated!=parseInt(rated))
{if(small!=-1)
{appendString=appendString+'<li><div><span class="rating_star_half"></span></div></li>';}
else
{appendString=appendString+'<li><div><a class="rating_star_half" href="'+_baseUri+'add_rate/product_id/'+productId+'/rate/'+i+'"></a></div></li>';}
i++;}
for(i;i<=5;i++)
{if(small!=-1)
{appendString=appendString+'<li><div><span class="rating_star_empty"></span></div></li>';}
else
{appendString=appendString+'<li><div><a class="rating_star_empty" href="'+_baseUri+'add_rate/product_id/'+productId+'/rate/'+i+'"></a></div></li>';}}
appendString=appendString+'</ul>';if(small!=-1)
{var element=$('div.float_left',this);element.append(appendString);}
else
{var element=$('h1',this);element.after(appendString);}};(function($){ShowLoading=function()
{if(!$('.loading').is('div'))
{$('<div class="loading"  style="display:none;"><img src="/images/ajax-loader.gif" alt="" /></div>').appendTo('div#content_container');}
else
{$('.loading').show();}};HideLoading=function()
{$('.loading').hide();};})(jQuery);$(document).ready(function(){window._baseUri=_shopFrontendHomepage;window._baseXhrUri=_shopFrontendHomepage;if(isDev(window._baseXhrUri))
{window._baseXhrUri=unDev(window._baseXhrUri);}
$(document).ajaxStart(function(){ShowLoading();}).ajaxStop(function(){HideLoading();});$(document).bind('keydown','alt+g',function(){var collection=$('div.widget').add('#categories').add('.end');for(var i in window.players)window.players[i].stop();var container=$('#container');var t=1000;var m='swing';container.css({overflow:'hidden'});var cHeight=container.height()+500;collection.each(function(){$(this).css({position:'relative',top:0,left:0});$(this).animate({top:(parseInt(Math.random()*500)*((Math.random()>0.5)?-1:1)),left:(parseInt(Math.random()*500)*((Math.random()>0.5)?-1:1))},t,m,function(){collection.animate({top:cHeight},t,m,function(){$('#navigation').animate({top:cHeight},t,m,function(){$('#logo').animate({top:cHeight},t,m);});})});});return false;});$(document).bind('keydown','alt+s',function(){for(var i in window.players)
{window.players[i].destroyInterval();}
return false;});$('ul.widget_rows li.row div.widget').not('div.widget:last-child').css({'margin-right':'17px'});$('ul.widget_rows li.row div.player').not('div.player:last-child').css({'margin-right':'17px'});$('ul#product_list li .br:first').css({'height':'0px'});$('div.buy_button').hover(function()
{$(this).addClass('hoverbutton');},function()
{$(this).removeClass('hoverbutton');});$('div.buy_button').click(function(event){if(!$(event.target).is('input.item_quantity'))
{$(this).parents('form').submit();}});$('span.button_box_ending').hover(function()
{$(this).addClass('hoverbutton');},function()
{$(this).removeClass('hoverbutton');});$("form.feature_filtering_form").submit(function(){$('li.price_li table tr td input[type=text]').each(function(i){var price_input=parseInt($(this).val());if(isNaN(price_input)){$(this).val('');}});return true;});$('a#id_price').click(function(){var FormFiltering=$('form.feature_filtering_form');$('li.price_li table tr td input[type=text]').val("");FormFiltering.submit();});$('span.button_box_ending').click(function(){$(this).parents('form').submit();});if($('#shadow').is('div')){$('div#shadow').css({'height':($(document).height()-35),'display':'block','opacity':0.6});}
if($('.tip').is('input'))
{$('.tip').internalTip();}
$('.navi').hover(function(){$(this).parent().toggleClass('hover');},function(){$(this).parent().toggleClass('hover');});$('.quick_select input[type=submit].hide').hide();$('.quick_select select').change(function(){$(this).parents('form.quick_select').submit();});$('.shopping input[type=submit]').hover(function(){$(this).parent().parent().addClass('shopping_hover')},function(){$(this).parent().parent().removeClass('shopping_hover')});$('#manufacturers_list li:gt(4)').hide();$.each($('#feature_filters ul'),function(){$(this).children('li:gt(4)').hide();});$('.switch_feature_visibility').click(function(){$(this).parent().find('ul > li:gt(4)').slideToggle('fast');return false;});if($('#animation').is('div'))
{$('#animation').flash(FlashConfiguration);}
if($('.form').is('table'))
{$('table.form').registerForm({types:{0:[2,3],1:[1,4]},visibilitySchema:function(form)
{return form.parent().prev();},visibilityMap:{0:false,1:false,2:true}});}
if($('#form_data').is('form'))
{$('form#form_data table.form').registerForm({types:{0:[2,3],1:[1,4]},visibilitySchema:function(form)
{return form.prev();},visibilityMap:{0:false,1:true}});}
if($('#address_edit').is('table'))
{$('table#address_edit').registerForm({types:{0:[2,3],1:[4,5]},visibilitySchema:function(form)
{return form.prev();},visibilityMap:{0:false,1:true}});}
if($('.address_shipping').is('ul')){var sendFormInvoice=new AddressManager({targetSelector:"ul.address_invoice",selectSelector:"select#selectAddress_address_invoice",request:_baseXhrUri+'refresh_box_invoice/'});var sendFormShipping=new AddressManager({targetSelector:".address_shipping",selectSelector:"select#selectAddress_address_shipping",request:_baseXhrUri+'refresh_box_shipping/'})
sendFormInvoice.init();sendFormShipping.init();}
$('input#customerAnnotation_invoice').click(function(event){$('div.formhidden').toggleClass('_formactive');$('div.formhidden').toggleClass('_formhidden');$.cookie('AnnotationInvoice',$(this).attr('checked'),{path:'/'});});if($('table#product_view #product_view_parts').is('ul')){var curr_part_element=$('ul#product_view_parts li');var current_href=curr_part_element.children('a').attr('href').slice(1);$('div#'+current_href).show();var curr_view_element=$('div#product_view_parts_content').children('div#'+current_href);$('ul#product_view_parts li a').click(function(){current_href=$(this).attr('href').slice(1);if(curr_view_element)curr_view_element.hide();curr_view_element=$('div#product_view_parts_content').children('div#'+current_href);curr_view_element.show();if(curr_part_element)curr_part_element.removeClass('current_part');curr_part_element=$(this).parent('li');curr_part_element.addClass('current_part');return false;});var ajaxLoaded=false;$('ul#product_view_parts li a').bind('click',function(){if($(this).attr('href')=='#product_part_related'&&!ajaxLoaded)
{var currentHref=$(this).attr('href').slice(1);$.ajax({url:_baseXhrUri+'powiazane/'+_product_id,dataType:'html',beforeSend:function()
{$('div#'+currentHref).html('<div style="height: 200px; line-height: 200px; text-align: center;">Czekaj, trwa ładowanie produktów...</div>');},success:function(data)
{$('div#'+currentHref).html(data);ajaxLoaded=true;}});}});if($('ul#product_view_parts li a[href="#product_part_related"]').parents().is('li')&&$('ul#product_view_parts > li').length==1)
{$('ul#product_view_parts li a[href="#product_part_related"]').click();}}
$('a.del_filter_big').click(function(event){var FormFiltering=$('form.feature_filtering_form');var index_elements=$(this).attr('id').split("_")[1];var index_elements_box=$('div.filter_container').attr('id').split("_")[1];$('div.filter_container').each(function(){if($('div.filter_container').hasClass('ib_'+index_elements))
$('div.ib_'+index_elements).find('input').removeAttr('checked');});FormFiltering.submit();return false;});$("a#del_all_filters, a.delete_all_filters").click(function(){var FormFiltering=$('form.feature_filtering_form');FormFiltering.find('input[type=checkbox]').removeAttr('checked')
FormFiltering.find('input[type=text]').attr("value","");FormFiltering.submit();return false;});$("form.feature_filtering_form ul#price_filters a.del_filter").click(function(){var FilterForm=$(this).parents('form');$(this).parents("ul#price_filters").find('input[type=text]').attr("value","");FilterForm.submit();return false;});$("form.feature_filtering_form ul#manufacturers_list a.del_filter").click(function(){var FilterForm=$(this).parents('form');$(this).parent().children('input').removeAttr("checked");FilterForm.submit();return false;});$("form.feature_filtering_form ul#feature_filters a.del_filter").click(function(){var FilterForm=$(this).parents('form');$(this).parent().children('input').removeAttr("checked");FilterForm.submit();return false;});if($('#product_view').is('table')){$('table#product_view a.lightbox').lightBox();}
if($('#shipping_table').is('table')){var formReload=function(){$(this).parents('form').submit();$('div#content').css('z-index','1003');$('div#content').css('opacity',0.5);}
$('table#shipping_table select').change(formReload);$('table#shipping_table input').click(formReload);}
$('td.product_box_top > div.content').each(verticalStars);$('ul#product_list li').each(horizontalStars);$('.voting_enabled').each(horizontalStars);if($('.rate').is('ul')&&window['ProductRate'])
{(new ProductRate()).Init({});};if(typeof variantsData=='object'&&variantsData.length>0)
{$('div.buy_box_container table.variant').variants({data:variantsData,priceUpdater:{container:function(obj){return obj.parents('.buy_box:eq(0)').children('div.price');},onUpdate:function(){},url:_baseXhrUri+'cena-odmiany'}});$('table#basket_table table.variant').variants({data:variantsData});}
if($('#basket_form').is('form'))
{$('form#basket_form').activeForm({onChange:function(element,form){$('td.basket_change').css('background','#FFCABF');},onRevert:function(element,form){}});}
$('#step_1 a').click(function(){$('.step_1_change').toggle();return false;});$('#order_checkout_submit').click(function(){if($('#rules_acceptation').is(':checked'))
{$(this).parents('form:eq(0)').submit();}
else
{window.alert('Proszę zaakceptować regulamin przed złożeniem zamówienia');return false;}});$('form a.submit').click(function(){$('input#order_go_cart').attr('disabled',true);$(this).parents('form:eq(0)').submit();return false;});});window.onload=function()
{if($('#product_gallery').is('ul')){$('ul#product_gallery').jGallery({thbWidth:80,thbHeight:80,animationSpeed:200});$('ul#product_gallery li a').lightBox();}
$('input.item_add').css('display','none');$('.shopping').prepend('<span class="szt">Kup</span>');$('#adult_container').css({'height':$(document).height()-150});$('#categories ul li:last-child').eq(0).addClass('last');};;
(function($){var hasIntrospection=(function(){_}).toString().indexOf('_')>-1,needCheckProps=$.browser.msie,specProps=needCheckProps?['toString','valueOf']:null,emptyBase=function(){};function override(base,result,add){var hasSpecProps=false;if(needCheckProps){var addList=[];$.each(specProps,function(){add.hasOwnProperty(this)&&(hasSpecProps=true)&&addList.push({name:this,val:add[this]});});if(hasSpecProps){$.each(add,function(name){addList.push({name:name,val:this});});add=addList;}}
$.each(add,function(name,prop){if(hasSpecProps){name=prop.name;prop=prop.val;}
if($.isFunction(base[name])&&$.isFunction(prop)&&(!hasIntrospection||prop.toString().indexOf('.__base')>-1)){var baseMethod=base[name];result[name]=function(){var baseSaved=this.__base;this.__base=baseMethod;var result=prop.apply(this,arguments);this.__base=baseSaved;return result;};}
else{result[name]=prop;}});}
$.inherit=function(){var hasBase=$.isFunction(arguments[0]),base=hasBase?arguments[0]:emptyBase,props=arguments[hasBase?1:0]||{},staticProps=arguments[hasBase?2:1],result=props.__constructor||(hasBase&&base.prototype.__constructor)?function(){this.__constructor.apply(this,arguments);}:function(){};if(!hasBase){result.prototype=props;result.prototype.__self=result.prototype.constructor=result;return $.extend(result,staticProps);}
$.extend(result,base);var inheritance=function(){},basePtp=base.prototype;inheritance.prototype=base.prototype;result.prototype=new inheritance();var resultPtp=result.prototype;resultPtp.__self=resultPtp.constructor=result;override(basePtp,resultPtp,props);staticProps&&override(base,result,staticProps);return result;};})(jQuery);;
(function($){namespace('Player');Player.Base=$.inherit({id:null,dom:null,domViews:null,domNavigation:null,mode:null,size:null,navMode:null,animationEffect:null,delay:null,productsCount:null,duration:500,currentViewIndex:0,statusWorking:false,timerId:null,intervalEnabled:true,__constructor:function(id,mode,size,place,animation)
{this.id=id;this.size=size;this.mode=mode;if(animation!=null&&typeof animation!='undefined')
{this.animationEffect=animation.effect;this.navMode=animation.navigate;this.delay=animation.delay;}
this.dom=$('#'+id);this.loadViews();if(this.hasNavigation())
{this.getDom().parent().append(this.getNavigation());}
if(this.getAnimationEffect()&&place=='content')
{this.setHeights();}
this.mountHover();this.mountLinks();},mountHover:function()
{var $this=this;if(!this.hasToAnimate())
{return false;}
this.getDom().hover(function(){$this.stop();},function(){$this.animate();});},mountLinks:function()
{$('ul.player-products > li',this.getDom()).click(function(){window.location=$('a',this).eq(0).attr('href');});},setHeights:function()
{var height=parseInt(this.getDom().parent().height());if(isNaN(height))
{return;}
this.getDom().height(height);$('ul.player-products',this.getDom()).height(height);if(this.getMode()=='large')
{$('ul.player-products > li',this.getDom()).height(height);}},loadViews:function()
{this.domViews=this.getDom().children('ul.player-products');},getDom:function()
{return this.dom;},getViews:function()
{return this.domViews;},getNumViews:function()
{return this.domViews.size();},getMode:function()
{return this.mode;},getSize:function()
{return this.size;},getDelay:function()
{return this.delay;},getAnimationEffect:function()
{return this.animationEffect;},hasToAnimate:function()
{return(this.intervalEnabled&&this.getNumViews()>1&&(this.navMode=='auto'||this.navMode=='both'));},getCurrentViewIndex:function()
{return this.currentViewIndex;},setCurrentViewIndex:function(index)
{this.currentViewIndex=index;},hasNavigation:function()
{return(this.navMode&&this.getNumViews()>1&&(this.navMode=='both'||this.navMode=='manual'));},renderNavigation:function()
{var $this=this;var numViews=this.getNumViews();var navigation=$('<div class="player-nav"><ul></ul></div>');var button;navigation.css({opacity:0.5});for(var i=0;i<numViews;i++)
{button=$('<li><a href="#view-'+i+'"></a></li>');$('a',button).click(function(){var index=parseInt(anchor($(this).attr('href'),'view'));$this.skipToView(index,true);return false;});navigation.find('ul').append(button);}
return navigation;},getNavigation:function()
{if(!this.domNavigation)
{this.domNavigation=this.renderNavigation();}
return this.domNavigation;},markSwitcher:function(index)
{var points=this.getNavigation().find('li');points.removeClass('active');points.eq(index).addClass('active');},init:function()
{if(this.hasNavigation())
{this.markSwitcher(0);}},animate:function()
{var $this=this;if(this.hasToAnimate())
{this.timerId=window.setInterval(function(){$this.switchToNextView();},this.getDelay()*1000);}},skipToView:function(index,animationRestart)
{if(this.hasNavigation())
{this.markSwitcher(index);}},setRest:function()
{this.statusWorking=false;},setWorking:function()
{this.statusWorking=true;},isWorking:function()
{return this.statusWorking;},stop:function()
{window.clearInterval(this.timerId);},destroyInterval:function()
{this.stop();this.intervalEnabled=false;},reset:function()
{this.stop();this.animate();}});})(jQuery);;
(function($){namespace('Player');Player.Fade=$.inherit(Player.Base,{__constructor:function(id,mode,size,place,animation)
{this.__base(id,mode,size,place,animation);},customizeViews:function()
{var n=this.getNumViews();var view;for(var i=0;i<n;i++)
{view=this.getViews().eq(i);view.css({position:'absolute'});if(i>0)
{view.css({zIndex:0}).hide();}
else
{view.css({zIndex:1});}}},getView:function(index)
{return this.getViews().eq(index);},init:function()
{this.customizeViews();this.animate();this.__base();},switchToNextView:function()
{var index;if(this.getCurrentViewIndex()+1>=this.getNumViews())
{index=0;}
else
{index=this.getCurrentViewIndex()+1}
this.skipToView(index);},skipToView:function(index,animationReset)
{var $this=this;if(this.isWorking())
{return false;}
this.setWorking();var currentView=this.getView(this.getCurrentViewIndex());var nextView=this.getView(index);this.setCurrentViewIndex(index);currentView.fadeOut(this.duration);nextView.css({zIndex:1});nextView.fadeIn(this.duration,function(){currentView.css({zIndex:0});$this.setRest();if(animationReset)
{$this.reset();}});this.__base(index);}});})(jQuery);;
(function($){namespace('Player');Player.Slide=$.inherit(Player.Base,{domSlider:null,polarisation:true,directionMap:{vertical:'top',horizontal:'left'},offsetMap:null,__constructor:function(id,mode,size,place,animation)
{this.offsetMap={vertical:{fn:'height',dimm:0},horizontal:{fn:'width',dimm:0}}
this.__base(id,mode,size,place,animation);this.domSlider=this.getDom().children('div.player-slider');},loadViews:function()
{this.domViews=this.getDom().children('div.player-slider').children('ul.player-products');},getSlider:function()
{return this.domSlider;},getOffset:function()
{if(!this.offsetMap[this.getAnimationEffect()].dimm)
{var fn=this.offsetMap[this.getAnimationEffect()].fn;this.offsetMap[this.getAnimationEffect()].dimm=this.getViews().eq(0)[fn]();}
return this.offsetMap[this.getAnimationEffect()].dimm;},getPolarisation:function()
{return this.polarisation;},switchPolarisation:function()
{this.polarisation=!this.polarisation;},getDirection:function()
{return this.directionMap[this.getAnimationEffect()];},customizeSlider:function()
{this.getSlider().css({left:0,top:0});switch(this.getAnimationEffect())
{case'vertical':this.getSlider().height(this.getViews().eq(0).height()*this.getNumViews());break;case'horizontal':this.getSlider().width(this.getViews().eq(0).width()*this.getNumViews());this.getViews().css({'float':'left'});break;}},init:function()
{this.customizeSlider();this.animate();this.__base();},switchToNextView:function()
{if(this.isWorking())
{return false;}
var index=this.getCurrentViewIndex();if(this.getPolarisation())
{index++;}
else
{index--;}
this.skipToView(index);},skipToView:function(index,animationReset)
{var $this=this;if(this.isWorking())
{return false;}
this.setWorking();if(this.getPolarisation())
{if(index+1==this.getNumViews())
{this.switchPolarisation();}}
else
{if(index==0)
{this.switchPolarisation();}}
this.setCurrentViewIndex(index);var params={};params[this.getDirection()]=((index*-1)*this.getOffset());this.getSlider().animate(params,this.duration,'swing',function(){$this.setRest();if(animationReset)
{$this.reset();}});this.__base(index);}});})(jQuery);;
(function($){namespace('Player');Player.Static=$.inherit(Player.Base,{__constructor:function(id,mode,size,place)
{this.__base(id,mode,size,place,null);$('ul.player-products',this.getDom()).not(':last').addClass('with-separator');}});})(jQuery);;
;(function($){$.fn.menuTree=function(config)
{var defaults={toggle:{on:"-",off:"+"},currentHref:'',slide:0};var $config=$.extend(defaults,config||{});var TreeNode=function(context,treeContext,level,root)
{var $this=this;this.context=context;this.treeContext=treeContext;this.level=level;this.expanded=true;this.root=root;this.hasChildren=false;this.init=function()
{var node=$($this.getContext());if(node.children('ul').size())
{var toggler=$('<div class="toggle minus"><span class="symbol">'+$config.toggle.on+'</span></div>');toggler.click($this.eventClick);$this.hasChildren=true;}
else
{var toggler=$('<div class="no_toggle"></div>');}
node.prepend(toggler);};this.getContext=function()
{return $this.context;};this.getRoot=function()
{return $this.root;};this.isFirstLevel=function()
{return($this.level==0);};this.eventClick=function()
{if(!$this.isExpanded())
{if($this.getCurrentExpandedRoot()&&$this.getRoot()!=$this.getCurrentExpandedRoot())
{$this.getCurrentExpandedRoot().treenode.collapse();}
$this.setCurrentExpandedRoot($this.getRoot());}
if($this.isExpanded())
{$this.collapse();}
else
{$this.expand();}};this.setCurrentExpandedRoot=function(element)
{$this.treeContext.currentExpandedRoot=element;};this.getCurrentExpandedRoot=function()
{return $this.treeContext.currentExpandedRoot;};this.getParentNode=function()
{return $($this.getContext()).parent('ul').parent('li').get(0).treenode;};this.isExpanded=function()
{return $this.expanded;};this.collapse=function()
{var childUl=$($this.getContext()).children('ul').eq(0);var node=$($this.getContext());if($this.isFirstLevel())
{$($this.getContext()).removeClass('active');}
if($this.hasChildren&&$this.isExpanded())
{childUl.hide();$this.expanded=false;node.children('div').removeClass('plus').addClass('minus');node.children('div').children('span').html($config.toggle.off);}};this.expand=function()
{var childUl=$($this.getContext()).children('ul').eq(0);var node=$($this.getContext());node.children('div').removeClass('minus').addClass('plus');if($this.isFirstLevel())
{$($this.getContext()).addClass('active');}
if($this.hasChildren&&!$this.isExpanded())
{childUl.show();$this.expanded=true;node.children('div').children('span').html($config.toggle.on);}};this.expandToRoot=function()
{var parentNode=$($this.getContext()).get(0).treenode;var currentUl;$this.setCurrentExpandedRoot($this.getRoot());while(parentNode)
{parentNode.expand();currentUl=$(parentNode.getContext()).parent();if(currentUl.is('ul')&&currentUl.parent().is('li'))
{parentNode=currentUl.parent().get(0).treenode;}
else
{parentNode=false;}}};};return this.each(function(){var scope=this;this.currentExpandedRoot=null;var build=function(ulElement,level,root)
{ulElement.addClass('level_'+level);ulElement.children('li').each(function(){if(level==0)
{root=this;}
this.treenode=new TreeNode(this,scope,level,root);this.treenode.init();if($(this).children('ul').size())
{build($(this).children('ul').eq(0),level+1,root);}
this.treenode.collapse();});};build($(this),0,null);if($config.currentHref)
{var a=$('a[href="'+$config.currentHref+'"]',this);if(typeof a=='object')
{a.parent('li').get(0).treenode.expandToRoot();}}
$(this).children("li:last").addClass('last');});};})(jQuery);;
jQuery.cookie=function(name,value,options){if(typeof value!='undefined'){options=options||{};if(value===null){value='';options.expires=-1;}
var expires='';if(options.expires&&(typeof options.expires=='number'||options.expires.toUTCString)){var date;if(typeof options.expires=='number'){date=new Date();date.setTime(date.getTime()+(options.expires*24*60*60*1000));}else{date=options.expires;}
expires='; expires='+date.toUTCString();}
var path=options.path?'; path='+(options.path):'';var domain=options.domain?'; domain='+(options.domain):'';var secure=options.secure?'; secure':'';document.cookie=[name,'=',encodeURIComponent(value),expires,path,domain,secure].join('');}else{var cookieValue=null;if(document.cookie&&document.cookie!=''){var cookies=document.cookie.split(';');for(var i=0;i<cookies.length;i++){var cookie=jQuery.trim(cookies[i]);if(cookie.substring(0,name.length+1)==(name+'=')){cookieValue=decodeURIComponent(cookie.substring(name.length+1));break;}}}
return cookieValue;}};;
;(function(){var $$;$$=jQuery.fn.flash=function(htmlOptions,pluginOptions,replace,update){var block=replace||$$.replace;pluginOptions=$$.copy($$.pluginOptions,pluginOptions);if(!$$.hasFlash(pluginOptions.version)){if(pluginOptions.expressInstall&&$$.hasFlash(6,0,65)){var expressInstallOptions={flashvars:{MMredirectURL:location,MMplayerType:'PlugIn',MMdoctitle:jQuery('title').text()}};}else if(pluginOptions.update){block=update||$$.update;}else{return this;}}
htmlOptions=$$.copy($$.htmlOptions,expressInstallOptions,htmlOptions);return this.each(function(){block.call(this,$$.copy(htmlOptions));});};$$.copy=function(){var options={},flashvars={};for(var i=0;i<arguments.length;i++){var arg=arguments[i];if(arg==undefined)continue;jQuery.extend(options,arg);if(arg.flashvars==undefined)continue;jQuery.extend(flashvars,arg.flashvars);}
options.flashvars=flashvars;return options;};$$.hasFlash=function(){if(/hasFlash\=true/.test(location))return true;if(/hasFlash\=false/.test(location))return false;var pv=$$.hasFlash.playerVersion().match(/\d+/g);var rv=String([arguments[0],arguments[1],arguments[2]]).match(/\d+/g)||String($$.pluginOptions.version).match(/\d+/g);for(var i=0;i<3;i++){pv[i]=parseInt(pv[i]||0);rv[i]=parseInt(rv[i]||0);if(pv[i]<rv[i])return false;if(pv[i]>rv[i])return true;}
return true;};$$.hasFlash.playerVersion=function(){try{try{var axo=new ActiveXObject('ShockwaveFlash.ShockwaveFlash.6');try{axo.AllowScriptAccess='always';}
catch(e){return'6,0,0';}}catch(e){}
return new ActiveXObject('ShockwaveFlash.ShockwaveFlash').GetVariable('$version').replace(/\D+/g,',').match(/^,?(.+),?$/)[1];}catch(e){try{if(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){return(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1];}}catch(e){}}
return'0,0,0';};$$.htmlOptions={height:240,flashvars:{},pluginspage:'http://www.adobe.com/go/getflashplayer',src:'#',type:'application/x-shockwave-flash',width:320};$$.pluginOptions={expressInstall:false,update:true,version:'6.0.65'};$$.replace=function(htmlOptions){this.innerHTML='<div class="alt">'+this.innerHTML+'</div>';jQuery(this).addClass('flash-replaced').prepend($$.transform(htmlOptions));};$$.update=function(htmlOptions){var url=String(location).split('?');url.splice(1,0,'?hasFlash=true&');url=url.join('');var msg='<p>This content requires the Flash Player. <a href="http://www.adobe.com/go/getflashplayer">Download Flash Player</a>. Already have Flash Player? <a href="'+url+'">Click here.</a></p>';this.innerHTML='<span class="alt">'+this.innerHTML+'</span>';jQuery(this).addClass('flash-update').prepend(msg);};function toAttributeString(){var s='';for(var key in this)
if(typeof this[key]!='function')
s+=key+'="'+this[key]+'" ';return s;};function toFlashvarsString(){var s='';for(var key in this)
if(typeof this[key]!='function')
s+=key+'='+encodeURIComponent(this[key])+'&';return s.replace(/&$/,'');};$$.transform=function(htmlOptions){htmlOptions.toString=toAttributeString;if(htmlOptions.flashvars)htmlOptions.flashvars.toString=toFlashvarsString;return'<embed '+String(htmlOptions)+'/>';};if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};});}})();;
var JSON=JSON||{};(function(){function f(n){return n<10?'0'+n:n;}
if(typeof Date.prototype.toJSON!=='function'){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+'-'+
f(this.getUTCMonth()+1)+'-'+
f(this.getUTCDate())+'T'+
f(this.getUTCHours())+':'+
f(this.getUTCMinutes())+':'+
f(this.getUTCSeconds())+'Z':null;};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf();};}
var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==='string'?c:'\\u'+('0000'+a.charCodeAt(0).toString(16)).slice(-4);})+'"':'"'+string+'"';}
function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==='object'&&typeof value.toJSON==='function'){value=value.toJSON(key);}
if(typeof rep==='function'){value=rep.call(holder,key,value);}
switch(typeof value){case'string':return quote(value);case'number':return isFinite(value)?String(value):'null';case'boolean':case'null':return String(value);case'object':if(!value){return'null';}
gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==='[object Array]'){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||'null';}
v=partial.length===0?'[]':gap?'[\n'+gap+
partial.join(',\n'+gap)+'\n'+
mind+']':'['+partial.join(',')+']';gap=mind;return v;}
if(rep&&typeof rep==='object'){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==='string'){v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':')+v);}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':')+v);}}}}
v=partial.length===0?'{}':gap?'{\n'+gap+partial.join(',\n'+gap)+'\n'+
mind+'}':'{'+partial.join(',')+'}';gap=mind;return v;}}
if(typeof JSON.stringify!=='function'){JSON.stringify=function(value,replacer,space){var i;gap='';indent='';if(typeof space==='number'){for(i=0;i<space;i+=1){indent+=' ';}}else if(typeof space==='string'){indent=space;}
rep=replacer;if(replacer&&typeof replacer!=='function'&&(typeof replacer!=='object'||typeof replacer.length!=='number')){throw new Error('JSON.stringify');}
return str('',{'':value});};}
if(typeof JSON.parse!=='function'){JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==='object'){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v;}else{delete value[k];}}}}
return reviver.call(holder,key,value);}
cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return'\\u'+
('0000'+a.charCodeAt(0).toString(16)).slice(-4);});}
if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,'@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,']').replace(/(?:^|:|,)(?:\s*\[)+/g,''))){j=eval('('+text+')');return typeof reviver==='function'?walk({'':j},''):j;}
throw new SyntaxError('JSON.parse');};}}());;
