/*Generated : {ts '2012-01-26 15:03:43'}*/jQuery.easing["jswing"]=jQuery.easing["swing"];jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d)},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b},easeOutQuad:function(x,t,b,c,d){return -c*(t/=d)*(t-2)+b},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1){return c/2*t*t+b}return -c/2*((--t)*(t-2)-1)+b},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1){return c/2*t*t*t+b}return c/2*((t-=2)*t*t+2)+b},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b},easeOutQuart:function(x,t,b,c,d){return -c*((t=t/d-1)*t*t*t-1)+b},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1){return c/2*t*t*t*t+b}return -c/2*((t-=2)*t*t*t-2)+b
},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1){return c/2*t*t*t*t*t+b}return c/2*((t-=2)*t*t*t*t+2)+b},easeInSine:function(x,t,b,c,d){return -c*Math.cos(t/d*(Math.PI/2))+c+b},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b},easeInOutSine:function(x,t,b,c,d){return -c/2*(Math.cos(Math.PI*t/d)-1)+b},easeInExpo:function(x,t,b,c,d){return(t==0)?b:c*Math.pow(2,10*(t/d-1))+b},easeOutExpo:function(x,t,b,c,d){return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b},easeInOutExpo:function(x,t,b,c,d){if(t==0){return b}if(t==d){return b+c}if((t/=d/2)<1){return c/2*Math.pow(2,10*(t-1))+b}return c/2*(-Math.pow(2,-10*--t)+2)+b},easeInCirc:function(x,t,b,c,d){return -c*(Math.sqrt(1-(t/=d)*t)-1)+b
},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1){return -c/2*(Math.sqrt(1-t*t)-1)+b}return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0){return b}if((t/=d)==1){return b+c}if(!p){p=d*0.3}if(a<Math.abs(c)){a=c;var s=p/4}else{var s=p/(2*Math.PI)*Math.asin(c/a)}return -(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b},easeOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0){return b}if((t/=d)==1){return b+c}if(!p){p=d*0.3}if(a<Math.abs(c)){a=c;var s=p/4}else{var s=p/(2*Math.PI)*Math.asin(c/a)}return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b},easeInOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0){return b
}if((t/=d/2)==2){return b+c}if(!p){p=d*(0.3*1.5)}if(a<Math.abs(c)){a=c;var s=p/4}else{var s=p/(2*Math.PI)*Math.asin(c/a)}if(t<1){return -0.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b}return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*0.5+c+b},easeInBack:function(x,t,b,c,d,s){if(s==undefined){s=1.70158}return c*(t/=d)*t*((s+1)*t-s)+b},easeOutBack:function(x,t,b,c,d,s){if(s==undefined){s=1.70158}return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},easeInOutBack:function(x,t,b,c,d,s){if(s==undefined){s=1.70158}if((t/=d/2)<1){return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b}return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b},easeInBounce:function(x,t,b,c,d){return c-jQuery.easing.easeOutBounce(x,d-t,0,c,d)+b},easeOutBounce:function(x,t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b
}else{if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+0.75)+b}else{if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+0.9375)+b}else{return c*(7.5625*(t-=(2.625/2.75))*t+0.984375)+b}}}},easeInOutBounce:function(x,t,b,c,d){if(t<d/2){return jQuery.easing.easeInBounce(x,t*2,0,c,d)*0.5+b}return jQuery.easing.easeOutBounce(x,t*2-d,0,c,d)*0.5+c*0.5+b}});window.log=function(){log.history=log.history||[];log.history.push(arguments);arguments.callee=arguments.callee.caller;if(this.console){console.log(Array.prototype.slice.call(arguments))}};(function(b){function c(){}for(var d="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),a;a=d.pop();){b[a]=b[a]||c}})(window.console=window.console||{});var acId="00";
var animate=false;$("#additional_content_wrapper").hide();$("#additional_content_wrapper > section").css("display","none");$("#mainNav a").live("click",function(){$("[tooltip=1]").attr("tooltip",0);UnTip();if(animate){return false}if(acId==this.id.substr(this.id.length-2,2)){$("#mainNav a").removeClass("active");animate=true;$("#additional_content_wrapper").slideUp(400,"easeInQuad",function(){$(this).children("section").css("display","none");animate=false;acId=""});return false}var newId="#additional_content_"+this.id.substr(this.id.length-2,2);var menuitem=this;if($(newId).length==0){return true}acId=this.id.substr(this.id.length-2,2);window.log("showAdditionalContent:",newId);$("#mainNav a").removeClass("active");if(acId==10){$("#main_nav_03").addClass("active")}else{$(menuitem).addClass("active")
}animate=true;$("#additional_content_wrapper").slideUp(400,"easeInQuad",function(){$(this).children("section").css("display","none");$(newId).css("display","block");$("#additional_content_wrapper").slideDown(1200,"easeOutQuad",function(){animate=false})});return false});function toggleBoldState(elem){if($(elem).css("font-weight")=="normal"||$(elem).css("font-weight")==400){$(elem).css("font-weight","bold");return true}else{$(elem).css("font-weight","normal");return false}}function runSearch(el){$("div.image-item").remove();var container=$("#innerPart");var list=$("#innerPart");emptySearch=false;endOfsearch=false;list.data().nextOffset=1;checkListItemContents(container,list);return false}function activeLoader(loaderID,page){var states=$("#loader span.hiddenText").hide();$(states[loaderID]).children().text(page);$(states[loaderID]).show();if(loaderID==0){$("#loader").animate({opacity:"0.2"},500);$("#loader").animate({opacity:"1"},500)}}function setPageNumeration(page,totalPage,totalImages){$("#mainContent div.gesamt span").text(totalImages);$("#page").text(page);
$(".innerText").text(page);$("#innerPart div.seite span:last-child").text(totalPage)}function getLinkForImage(sku,language){if(language==1){return"/de/index.cfm/lizenzfreie-bilder-fotos/"+sku+".html"}return"/en/index.cfm/royaltyfree-images-photos/"+sku+".html"}function gotoPage(maxpageNo){var newpage=$("#gotopageNo").val();if(!IsNumeric(newpage)||newpage<=0||newpage>maxpageNo){$("#gotopageNo").css("background","#f00")}else{$("#gotopageNo").css("background","#fff");$("#currentPageForm").submit();return true}return false}function IsNumeric(sText){var ValidChars="0123456789";var IsNumber=true;var Char;for(i=0;i<sText.length&&IsNumber==true;i++){Char=sText.charAt(i);if(ValidChars.indexOf(Char)==-1){IsNumber=false}}return IsNumber};function orderInvoiceCopy(invno){$.ajax({type:"POST",url:ajaxroot+"orderInvoiceCopy.cfm?invNo="+invno+"&dummy="+new Date().getTime(),success:function(responseText){$("span.invoiceCopy").html(responseText)}})}function goToInvoice(){$("[tooltip=1]").attr("tooltip",0);UnTip();if(acId!="09"){$.ajax({type:"POST",url:ajaxroot+"getMyInvoices.cfm?invNo=0&dummy="+new Date().getTime(),success:function(responseText){$("#invoice").html(responseText);$("#main_nav_09").click();$("#mainNav a").removeClass("active");$("#main_nav_08").addClass("active")}})}else{$("#main_nav_09").click()}return false}function goToCheckout(){$("[tooltip=1]").attr("tooltip",0);UnTip();checkoutpage=1;if(acId!="07"){checkoutactive=true;$("#checkout").css("opacity",1);$.ajax({type:"POST",url:ajaxroot+"getContentOfBasket.cfm?dummy="+new Date().getTime(),success:function(responseText){$("#checkout").html(responseText);
$("#main_nav_07").click()}})}else{$("#main_nav_07").click()}return false}function loadUserData(){$("[tooltip=1]").attr("tooltip",0);UnTip();if(acId!="10"){$.post(ajaxroot+"loadUserData.cfm?language="+uilanguage+"&dummy="+new Date().getTime(),function(userdata){$("#form_register").html(userdata);$("#main_nav_10").click()})}else{$("#main_nav_10").click()}return false}function checkCheckoutData(){var cont=true;$("#checkout_data input[active=false],select[active=false]").removeAttr("disabled");var ser=$("#checkout_data").serialize();$("#checkout_data input[active=false],select[active=false]").attr("disabled","disabled");$.ajax({type:"POST",url:ajaxroot+"register.cfm?checkout=true&update=true&dummy="+new Date().getTime(),data:ser,dataType:"json",async:false,success:function(responseText){if(responseText[0]!="ERROR"&responseText[0]!=true){if(responseText.length>0){cont=false;
$("#checkout_"+responseText[0][0]).attr("tooltip","1");Tip(responseText[0][1],"checkout_"+responseText[0][0])}}}});if(cont){ser="";var del="&";if($("#check_alternative").attr("checked")==true){ser=$("#checkout_alt_data").serialize();del="&"}if($("#check_altLicenseHolder").attr("checked")){var ser_license=$("#alt_licenseHolder").serialize();ser=ser+del+ser_license}if(ser!=""){$.ajax({type:"POST",url:ajaxroot+"register.cfm?checkout=true&writeinSession=true&dummy="+new Date().getTime(),data:ser,dataType:"json",async:false,success:function(responseText){if(responseText[0]!="ERROR"){if(responseText.length>0){cont=false;$("#alt_"+responseText[0][0]).attr("tooltip","1");Tip(responseText[0][1],"alt_"+responseText[0][0])}}}})}}return cont}function nextInCheckout(){if(checkoutpage!=2){if(checkoutactive){$.ajax({type:"POST",url:ajaxroot+"getCheckoutData.cfm?dummy="+new Date().getTime(),success:function(responseText){if(responseText!="ERROR"){$("#checkout").html(responseText);
activateCheckout()}}})}checkoutpage=2}}function loadInvoice(invNo){$("#invoice .right").css("opacity","0.5");$.ajax({type:"POST",url:ajaxroot+"getMyInvoices.cfm?invNo="+invNo+"&dummy="+new Date().getTime(),success:function(responseText){if(invNo==0){$("#invoice").html(responseText)}else{$("#invoice .right").html(responseText);$("#invoice .right").css("opacity","1")}}})}function updateCheckout(){checkoutpage=1;$.ajax({type:"POST",url:ajaxroot+"getContentOfBasket.cfm?dummy="+new Date().getTime(),success:function(responseText){if(responseText!="ERROR"){$("#checkout").html(responseText);activateCheckout()}}})}function activateCheckout(){$("#checkout").css("opacity",1);$("#checkout").find("input").removeAttr("disabled");$("#checkout input[active=false],select[active=false]").css("opacity","0.5");
$("#checkout input[active=false],select[active=false]").attr("disabled","disabled");checkoutactive=true}function openImageDialog(el){var imgno=$(el).parent().attr("id").split("_")[1];var thu=$(el).parent().find("img").attr("src");showDialog(imgno,thu)}function showDialog(imgno,thu){$("#foocheckout").html("");$("#foocheckout").dialog({width:950,height:400,maxHeight:700,maxWidth:750,open:function(){$("#foocheckout").load(ajaxroot+"priceCalculator.cfm?isDialog=true&query="+imgno+"&thu="+thu)},title:dialogtitle})}function openDialog(id){$("#foo").html("");$("#foo").dialog({width:560,height:300,maxHeight:400,maxWidth:560,open:function(){$("#foo").load(ajaxroot+"licenseInfo.cfm?ID="+id)},title:dialogtitle})}function editBasket(qry,thu,el){syncPreview(el);addToLightbox(qry,false,true);setTimeout(function(){addToBasket(qry,thu,el)
},500)}function syncPreview(el){top_div=$(el).parents("div").last();main_license=($("input[name=license]").not(top_div.find("input[name=license]")));for(i=0;i<main_license.length;i++){$(main_license[i]).attr("checked",top_div.find("input[name=license][value="+$(main_license[i]).val()+"]").attr("checked"))}$("input[type=radio][versionid="+top_div.find("input[type=radio]:checked").attr("versionid")+"]").attr("checked","checked");$("input[type=radio][versionid="+top_div.find("input[type=radio]:checked").attr("versionid")+"]").change()}function switchMethodsBasket(qry,thu,el){if($("a.addWarenkorb").attr("edit")=="true"){editBasket(qry,thu,el)}else{if(addToBasket(qry,thu,el)){$("a.addWarenkorb").attr("edit","true");$("a.addWarenkorb").html(rbtjs_changeInBasket)}}}function addToBasket(qry,thu,el){top_div=$(el).parents("div").last();
var resolution=top_div.find("input[type=radio]:checked");var licenses=top_div.find("input[name=license]:checked:gt(0)");result=true;if(resolution.length){if(checkoutactive==false){result=addToLightbox(qry,true,true,thu,resolution.attr("versionid"),licenses,resolution.attr("shortname"),resolution.attr("productname"),false);$("#foocheckout").dialog("close");updateCheckout()}else{result=addToLightbox(qry,true,true,thu,resolution.attr("versionid"),licenses,resolution.attr("shortname"),resolution.attr("productname"),false);$("#foocheckout").dialog("close");syncPreview(el)}}else{warningBasket();result=false}return result}function warningBasket(){$(".output").html("<img src='"+themepath+"/images/alert.png' alt='alert' width='12' height='11'><span class='message'>"+rbtjs_chooseSize+"</span>")}function removeFromBasket(qry,thu,el){syncPreview(el);
addToLightbox(qry,false,true);$("a.addWarenkorb").attr("edit","false");$("a.addWarenkorb").html(rbtjs_addToBasket)}function forgotpassword(){$("#div_login").hide();$("#forgotpassword").show()}function backToLogin(){$("#div_login").show();$("#forgotpasswd").show();$("#forgotpassword").hide();$("#message").html("")}function frgtPwdFormPost(form){var form=$(form);$.getJSON(ajaxroot+"forgotPass.cfm",form.serialize(),function(data){if(data.state){$("#forgotpasswd").hide()}$("div#message").html(data.message)})}function calcVat(){if(eucountries.indexOf($("#alt_countryID :selected").attr("id2"))<0){var newvat;if($("#alt_countryID :selected").attr("id2")=="DE"){newvat=true}else{newvat=false}$("#div_alt_vatid").hide();if(newvat!=ust){ust=newvat;getVat(ust)}}else{$("#div_alt_vatid").show();if(alt_comp){ust=!ust_valid;
$("#div_alt_vatid").show()}else{$("#div_alt_vatid").hide();ust=true}getVat(ust)}}function getVat(ust){$.ajax({type:"get",url:ajaxroot+"calculate_alternative.cfm?calcVat="+ust,dataType:"json",success:function(response){if(response.VALUE!="ERROR"){$("#total_amount").html(response.VALUE);$("#vattext").html(response.VAT)}}})}function checkVat(){vatid=$("#alt_vatid").val();if(vatid.length>8){$("#checkVatID").html('<center><div class="infotext">'+rbtjs_checkVatID+'</div><img src="'+imagesPath+'ajax-loader.gif"></center>');$.ajax({type:"get",url:ajaxroot+"checkVatID.cfm?vatID="+vatid,async:false,success:function(response){$("#checkVatID").html("");if(response=="true"){ust_valid=true;$("[tooltip=1]").attr("tooltip",0);UnTip()}else{ust_valid=false;$("#alt_vatid").attr("tooltip","1");Tip(jbtjs_vatidnotvalid,"alt_vatid")
}}})}else{if(vatid.length>0){$("#alt_vatid").attr("tooltip","1");Tip(jbtjs_vatidnotvalid,"alt_vatid")}}calcVat()}var tooltip_left=12;var tooltop_top=29;function Tip(text,selector){postop=$("#"+selector).offset().top+tooltop_top;posleft=$("#"+selector).offset().left+tooltip_left;$("#tooltip_message .text").html(text);$("#tooltip_message").css({top:postop,left:posleft});$("#tooltip_message").fadeIn(250)}function UnTip(){$("#tooltip_message").hide()}function fb_login(user,pass){pass=pass.substring(0,25);$.post(ajaxroot+"login.cfm?user="+user+"&pass="+pass+"&dummy="+new Date().getTime(),function(data){if(data==1){_gaq.push(["_trackEvent","Authentication","success","Facebook"]);id_login()}else{_gaq.push(["_trackEvent","Authentication","failed","Facebook"])}})}function id_login(){$("#logintext").text("Login erfolgreich").show();
getLightbox(false,0);getLightbox(true,0);$.ajax({url:ajaxroot+"lightbox.cfm?isBasket=false&lightboxNo=0&selectbox=true&dummy="+new Date().getTime(),type:"get",success:function(response){$("#lightboxSelect").html(response)}});$("#lightboxNav").show();$("#additional_content_wrapper").slideUp(400,"easeInQuad",function(){$("#div_login").hide();$("#div_logout").show();$("#logintext").hide();$("#main_nav_02").html(rbtjs_logout);$("#main_nav_02").attr("title",rbtjs_logout);$("#main_nav_02").removeAttr("class");$("#main_nav_03").html(rbtjs_mydata);$("#reg_update").val("true");$("#reg_submit").val(rbtjs_registChange);$("#registdata_title").html(rbtjs_mydata);$("#reg_user").attr("ok","1");$("#main_nav_08").show();acId="00"})}function listNummerator(){index=1;$("#sonderangebot ol li").each(function(){$(this).html('<div class="listNummerator"><span>'+index+'</span></div><div class="liText">'+$(this).text()+"</div>");
index++});$("#sonderangebot ol li").first().find(".liText").css({"position":"relative","top":"5px"})};$(function(){$("#alt_company").live("change keyup",function(){$("[tooltip=1]").attr("tooltip",0);UnTip();if(($(this).val()!="")!=alt_comp){alt_comp=($(this).val()!="");calcVat();return false}});$("#alt_countryID").live("change",function(){$("[tooltip=1]").attr("tooltip",0);UnTip();calcVat();return false});$("#alt_vatid").live("change",function(){checkVat()});$("#alt_vatid").live("keypress",function(){UnTip()});$("input[type='radio']").live("change",function(e){if(this.checked){summeCredits=0;summePrice=0;this_var=$(this);top_div=$(this).parents("div").last();top_div.find(".license").css("visibility","visible");top_div.find("input[name='license']").each(function(){summePrice+=this.checked?parseFloat($(this).attr("price")):0;if(this.checked){top_div.find("#price").html(("&euro; "+(summePrice+parseFloat(this_var.attr("price"))).toFixed(2)).replace(/\./,","))
}})}});$("input[name='license']").live("change",function(){top_div=$(this).parents("div").last();if(this.checked){top_div.find("#price").html(("&euro; "+(parseFloat(top_div.find("#price").html().substr(2).replace(/,/,"."))+parseFloat($(this).attr("price"))).toFixed(2)).replace(/\./,","))}else{if($("#price").html().substr(2)!="0,00"){top_div.find("#price").html(("&euro; "+(parseFloat(top_div.find("#price").html().substr(2).replace(/,/,"."))-parseFloat($(this).attr("price"))).toFixed(2)).replace(/\./,","))}}});$("#btn_dialogexit").live("click",function(){$("#foocheckout").dialog("close");if(checkoutactive==false){activateCheckout()}});$("#invoice tr").live("click",function(){$("#invoice tr").each(function(){$(this).removeClass("selected")});loadInvoice($(this).attr("invno"));$(this).addClass("selected")
});$("span.aendern").live("click",function(){var imgno=$(this).parent().attr("id").split("_")[1];var thu=$(this).parent().find("img").attr("src");$("#foocheckout").html("");$("#foocheckout").dialog({width:950,height:400,maxHeight:700,maxWidth:750,open:function(){$("#foocheckout").load(ajaxroot+"priceCalculator.cfm?isDialog=true&query="+imgno+"&thu="+thu)},title:dialogtitle})});$("#toCheckoutBtn").live("click",function(){return goToCheckout()});$("#main_nav_06").click(function(){return goToCheckout()});$("#main_nav_08").click(function(){return goToInvoice()});$("#main_nav_03").click(function(){loadUserData()});$("#checkout .options input").live("click",function(){checkoutactive=false;$("#checkout").css("opacity",0.5);$("#checkout").find("input").attr("disabled","disabled");if($(this).attr("name")=="remove"){addToLightbox($(this).attr("imgno"),false,true,"","","","","",false);
updateCheckout()}else{showDialog($(this).attr("imgno"),$(this).attr("thu"))}});$("#nextBtn").live("click",function(){nextInCheckout()});$(".pagina .next").live("click",function(){nextInCheckout()});$("#invoice .options input").live("click",function(){$("#invoice").css("opacity","0.5");$("#invoice input").attr("disabled","true");$.ajax({type:"GET",url:ajaxroot+"reDownload.cfm?dummy="+new Date().getTime()+"&invItemNo="+$(this).attr("invItemNo")+"&imgNo="+$(this).attr("imgNo"),success:function(responseText){if(responseText.substring(0,4)=="http"){location.href=responseText}$("#invoice input").removeAttr("disabled");$("#invoice").css("opacity","1")}})});$(".pagina .prev").live("click",function(){if(checkoutpage!=1){if(checkoutactive){updateCheckout()}checkoutpage=1}});$("span.kaufen").live("click",function(){openImageDialog(this);
return false});$("div.image-wrapper").live("click",function(){location.href=previewurl+$(this).parent().attr("id").split("_")[1]+".html?thu="+$(this).parent().find("img").attr("src")+"&searchPage="+$("#page").html();return false});$("#check_alternative").live("click",function(){if($(this).attr("checked")==true){$("#div_alternative").show();getVat(ust)}else{$("#div_alternative").hide();getVat("own")}$("[tooltip=1]").attr("tooltip",0);UnTip()});$("#check_altLicenseHolder").live("click",function(){if($(this).attr("checked")==true){$("#alt_license").show()}else{$("#alt_license").hide()}UnTip()});$("#singlebuy").live("click",function(){var resolution=$("#mainContent input[name=resolution]:checked");if(resolution.length>0){license=$("#mainContent input[name=license]:checked:gt(0)");var licenselist=[];
license.each(function(i,el){licenselist.push($(el).val())});$.ajax({type:"POST",url:ajaxroot+"getContentOfBasket.cfm?singlebuy=true&dummy="+new Date().getTime(),data:{imgno:$(this).attr("imgno"),licenses:licenselist.toString(),size:resolution.attr("productname"),versionid:resolution.attr("versionid"),thu:$(this).attr("thu"),sizeshort:resolution.attr("shortname")},success:function(responseText){checkoutpage=1;checkoutactive=true;$("#checkout").html(responseText);$(window).scrollTop(0);if(acId!="07"){$("#main_nav_07").click()}}})}else{$("#output_singlebuy").html("<img src='"+themepath+"/images/alert.png' alt='alert' width='12' height='11'><span class='message'>"+rbtjs_chooseSize+"</span>")}});$("#gotocheckout").live("click",function(){$.ajax({type:"POST",url:ajaxroot+"getContentOfBasket.cfm?dummy="+new Date().getTime(),success:function(responseText){checkoutpage=1;
checkoutactive=true;$("#checkout").html(responseText);$(window).scrollTop(0);if(acId!="07"){$("#main_nav_07").click()}}})});$("#cancelButton").live("click",function(){$("#inputField").html("");$("#inputButton").html("");$("#cancelButton").html("");$("#inputFieldsBtn").hide()});$("#addLightbox").live("click",function(){$("#inputFieldsBtn").show();$("#inputField").html('<input id="newName" type="text" name="newName" value="" />');$("#newName").focus();$("#inputButton").html('<input type="button" value="'+rbtjs_add+'" onclick="javascript:newLightbox();return false;"/>');$("#cancelButton").html('<input type="button" id="cancelButton" value="'+rbtjs_cancel+'">')});$("#showLightbox").live("click",function(){$.ajax({type:"GET",url:ajaxroot+"lightbox_options.cfm?action=show&dummy="+new Date().getTime(),success:function(responseText){if(responseText!="ERROR"&&responseText!="EMPTY"){location.href=responseText
}}})});$("#removeLightbox").live("click",function(){$("#inputFieldsBtn").show();$("#inputField").html("");$("#inputButton").html('<input type="button" id="btnRemove" value="'+rbtjs_remove+'" onclick="javascript:removeLightbox();return false;"/>');$("#cancelButton").html('<input type="button" id="cancelButton" value="'+rbtjs_cancel+'">')});$("#renameLightbox").live("click",function(){oldName=$("#lightboxNo option:selected").text();$("#inputFieldsBtn").show();$("#inputField").html('<input id="newName" type="text" name="newName" value="'+oldName+'" />');$("#newName").focus();$("#inputButton").html('<input type="button" value="'+rbtjs_rename+'" onclick="javascript:renameLightbox();return false;"/>');$("#cancelButton").html('<input type="button" id="cancelButton" value="'+rbtjs_cancel+'">')});$("#merkliste .warenkorb").live("click",function(){openImageDialog(this)
});$("#reg_countryID,#reg_company").live("change",function(){if(eucountries.indexOf($("#reg_countryID :selected").attr("id2"))<0|$("#reg_company").val()==""){$("#div_vat").hide();$("#reg_vatid").removeAttr("required")}else{$("#div_vat").show();$("#reg_vatid").attr("required","required")}UnTip();return false});$("#reg_submit").live("click",function(){if($("#reg_user").attr("ok")=="1"){$("#checkDataOutput").html('<center><div class="infotext">'+rbtjs_checkData+'</div><img src="'+imagesPath+'ajax-loader.gif"></center>');$("#form_register input").css("border","none");$.ajax({type:"POST",url:ajaxroot+"register.cfm?dummy="+new Date().getTime(),data:$("#form_register").serialize(),dataType:"json",success:function(responseText){$("#checkDataOutput").html("");if(responseText[0]=="1"){if($("#reg_update").val()=="false"){$("#login_user").val($("#reg_user").val());
$("#main_nav_02").click();_gaq.push(["_trackEvent","Registration","complete","Own"])}}else{if(responseText[0]!="ERROR"){if(responseText.length>0){$("#reg_"+responseText[0][0]).attr("tooltip","1");Tip(responseText[0][1],"reg_"+responseText[0][0])}}}}})}else{$("#reg_user").attr("tooltip","1");Tip(rbtjs_usernameunavailable,"reg_user")}return false});$("#reg_user").live("focusout",function(){if($("#reg_user").val().length>4){$.post(ajaxroot+"register.cfm?checkuser=true&user="+$("#reg_user").val()+"&dummy="+new Date().getTime(),function(data){if(data=="0"){$("#reg_user").attr("ok","1")}else{$("#reg_user").attr("ok","0");$("#reg_user").attr("tooltip","1");Tip(rbtjs_usernameunavailable,"reg_user")}})}else{$("#reg_user").attr("ok","0");$("#reg_user").attr("tooltip","1");Tip(rbtjs_usernametooshort,"reg_user")
}});$(".ext_input input[tooltip=1]").live("click",function(){UnTip();$(this).attr("tooltip","0")});$("#form_newsletter").submit(function(){$.ajax({type:"POST",url:ajaxroot+"newsletter.cfm?dummy="+new Date().getTime(),data:$("#form_newsletter").serialize(),success:function(responseText){if(responseText!="ERROR"){$("#news_response").html("#rbt_header.form.subscription#")}}});return false});$("span.entfernen").live("click",function(){imgNo=$(this).parent().attr("id").split("_")[1];isBasket=($(this).parent().attr("id").split("_")[0]=="warenkorb");addToLightbox(imgNo,false,isBasket);if(isBasket){$("a.addWarenkorb").attr("edit","false");$("a.addWarenkorb").html(rbtjs_addToBasket)}else{$("a.addMerkliste").attr("add","true");$("a.addMerkliste").html(rbtjs_addToLightbox)}});$("#loginsend").click(function(){$.post(ajaxroot+"login.cfm?user="+$("#login_user").val()+"&pass="+$("#login_pass").val()+"&dummy="+new Date().getTime(),function(data){if(data==1){_gaq.push(["_trackEvent","Authentication","success","Own"]);
id_login()}else{_gaq.push(["_trackEvent","Authentication","failed","Own"]);$("#logintext").text("Login fehlgeschlagen").show()}});return false});$("#logoutsend").live("click",function(){if(animate){return false}$.post(ajaxroot+"login.cfm?logout=1&dummy="+new Date().getTime(),function(data){if(data==1){getLightbox(false,0);getLightbox(true,0);$.ajax({url:ajaxroot+"lightbox.cfm?isBasket=false&lightboxNo=0&selectbox=true&dummy="+new Date().getTime(),type:"get",success:function(response){$("#lightboxSelect").html(response)}});$("#lightboxNav").hide();$("#additional_content_wrapper").slideUp(400,"easeInQuad",function(){$("#div_logout").hide();$("#div_login").show();$("#logintext").hide();$("#main_nav_02").html(rbtjs_login);$("#main_nav_02").attr(rbtjs_login);$("#main_nav_03").html(rbtjs_register);
$("#reg_update").val("false");$("#reg_submit").val(rbtjs_register);$("#registdata_title").html(rbtjs_register);$("#main_nav_08").hide();$("#invoice").html("");$(".ext_input input").val("");$("#reg_user").removeAttr("disabled");$("#additional_content_wrapper").slideDown(400,"easeInQuad",function(){})})}else{if(data==2){logout()}else{$("#logintext").text("Login fehlgeschlagen").show()}}});return false});$("#orientation1").click(function(){var allNotChecked=true;$("#filterGroup_3 input[type='checkbox']").each(function(){allNotChecked=allNotChecked&&(!$(this).attr("checked"))});if(allNotChecked){$("#filterGroup_3 input[type='checkbox']").attr("checked","checked")}});$("#orientation2").click(function(){var allNotChecked=true;$("#filterGroup_3 input[type='checkbox']").each(function(){allNotChecked=allNotChecked&&(!$(this).attr("checked"))
});if(allNotChecked){$("#filterGroup_3 input[type='checkbox']").attr("checked","checked")}});$("#orientation3").click(function(){var allNotChecked=true;$("#filterGroup_3 input[type='checkbox']").each(function(){allNotChecked=allNotChecked&&(!$(this).attr("checked"))});if(allNotChecked){$("#filterGroup_3 input[type='checkbox']").attr("checked","checked")}});$("#orientation4").click(function(){var allNotChecked=true;$("#filterGroup_3 input[type='checkbox']").each(function(){allNotChecked=allNotChecked&&(!$(this).attr("checked"))});if(allNotChecked){$("#filterGroup_3 input[type='checkbox']").attr("checked","checked")}});$("#filter1").click(function(){if(!$(this).attr("checked")&&!$("#filter2").attr("checked")){$("#filter2").attr("checked","checked")}});$("#filter2").click(function(){if(!$(this).attr("checked")&&!$("#filter1").attr("checked")){$("#filter1").attr("checked","checked")
}});$("#color1").click(function(){if(!$(this).attr("checked")&&!$("#color2").attr("checked")){$("#color2").attr("checked","checked")}});$("#color2").click(function(){if(!$(this).attr("checked")&&!$("#color1").attr("checked")){$("#color1").attr("checked","checked")}});$("#co_login").live("click",function(){$("#main_nav_02").click()});$("#co_regist").live("click",function(){$("#main_nav_03").click()});$(".ext_input").live("click",function(){input=$(this).find("input");input.focus()});$("span.anzeigen").live("click",function(){location.href=previewurl+$(this).parent().attr("id").split("_")[1]+".html?searchpage=1&thu="+$(this).parent().find("img").attr("src")})});

