var mf_wall_x=1010;var mf_wall_y=5;var mf_wall_center=false;function mf_wall_init(top){if(document.getElementById('eBayRelevanceSky')){document.getElementById('eBayRelevanceSky').style.display='none';}}
function detectBrowser()
{var browser=navigator.appName;var b_version=navigator.appVersion;var version=parseFloat(b_version);return browser;}
function switch_display(id){all_elements=getElementsByClassName("f_"+id);more=document.getElementById("more_"+id);less=document.getElementById("less_"+id);bg_id=document.getElementById("bg_"+id);if(bg_id.style.backgroundColor=='')
    {bg_id.style.backgroundColor='#F2F2F2';}
    else
    {bg_id.style.backgroundColor='';}
    if(all_elements[0]){var elem_0=all_elements[0];if(elem_0&&(elem_0.style.display=="block"||elem_0.style.display=="")){var display="none";var display_inv="";}else{var display="";var display_inv="none";}
        for(var i=0;i<all_elements.length;i++){obj=all_elements[i];obj.style.display=display;}
        more.style.display=display_inv;less.style.display=display;}}
function getElementsByClassName(classname){all_elements=document.getElementById("filter").getElementsByTagName("li");return_array=new Array();for(var i=0;i<all_elements.length;i++){if(i<20){}
        if(all_elements[i].className==classname){return_array=return_array.concat(all_elements[i]);}}
    return(return_array);}
function getposOffset(overlay,offsettype){var totaloffset=(offsettype=="left")?overlay.offsetLeft:overlay.offsetTop;var parentEl=overlay.offsetParent;while(parentEl!=null){totaloffset=(offsettype=="left")?totaloffset+parentEl.offsetLeft:totaloffset+parentEl.offsetTop;parentEl=parentEl.offsetParent;}
    return totaloffset;}
function overlay(curobj,subobjstr,opt_position,left,top){if(document.getElementById){if(subobjstr=="subcontent_login"){if(chkObject('subcontent')){if(document.getElementById('subcontent').style.display=="block"){document.getElementById('subcontent').style.display="none";}}}else{if(chkObject('subcontent_login')){if(document.getElementById('subcontent_login').style.display=="block"){document.getElementById('subcontent_login').style.display="none";}}}
        var subobj=document.getElementById(subobjstr)
        subobj.style.display=(subobj.style.display!="block")?"block":"none"
        var xpos=getposOffset(curobj,"left")+((typeof opt_position!="undefined"&&opt_position.indexOf("right")!=-1)?-(subobj.offsetWidth-curobj.offsetWidth):0)-left;var ypos=getposOffset(curobj,"top")+((typeof opt_position!="undefined"&&opt_position.indexOf("bottom")!=-1)?curobj.offsetHeight:0)+top;subobj.style.left=xpos+"px"
        subobj.style.top=ypos+"px"
        return false}
    else
    return true}
function overlayopen(subobjstr){var subobj=document.getElementById(subobjstr)
    subobj.style.display=(subobj.style.display!="block")?"block":"none"}
function overlayclose(subobj){document.getElementById(subobj).style.display="none"}
function chkObject(theVal){if(document.getElementById(theVal)!=null){return true;}else{return false;}}
var menuTimer=0;function addEvent(obj,evType,fn){if(obj.addEventListener){obj.addEventListener(evType,fn,false);return true;}else if(obj.attachEvent){var r=obj.attachEvent("on"+evType,fn);return r;}else{return false;}}
function removeEvent(obj,evType,fn,useCapture){if(obj.removeEventListener){obj.removeEventListener(evType,fn,useCapture);return true;}else if(obj.detachEvent){var r=obj.detachEvent("on"+evType,fn);return r;}else{alert("Handler could not be removed");}}
function getViewportHeight(){if(window.innerHeight!=window.undefined)return window.innerHeight;if(document.compatMode=='CSS1Compat')return document.documentElement.clientHeight;if(document.body)return document.body.clientHeight;return window.undefined;}
function getViewportWidth(){var offset=17;var width=null;if(window.innerWidth!=window.undefined)return window.innerWidth;if(document.compatMode=='CSS1Compat')return document.documentElement.clientWidth;if(document.body)return document.body.clientWidth;}
function getScrollTop(){if(self.pageYOffset)
    {return self.pageYOffset;}
    else if(document.documentElement&&document.documentElement.scrollTop)
    {return document.documentElement.scrollTop;}
    else if(document.body)
    {return document.body.scrollTop;}}
function getScrollLeft(){if(self.pageXOffset)
    {return self.pageXOffset;}
    else if(document.documentElement&&document.documentElement.scrollLeft)
    {return document.documentElement.scrollLeft;}
    else if(document.body)
    {return document.body.scrollLeft;}}
function priceValidate(min,max){var x=document.filter_price;for(i=0;i<document.filter_price.elements.length;i++)
    {if(document.filter_price.elements[i].type=="text"||document.filter_price.elements[i].type=="password"||document.filter_price.elements[i].type=="textarea")
        {document.filter_price.elements[i].value=trim(document.filter_price.elements[i].value);}}
    if(x.min.value!="")
    {var tel1=x.min.value;ret=numCheck(tel1,'Invalid From Price Value.');if(ret==1)
        {x.min.focus();return false;}
        if(parseInt(x.min.value)<parseInt(min)){}
        if(parseInt(x.min.value)>parseInt(max)){}}
    if(x.max.value!="")
    {var tel1=x.max.value;ret=numCheck(tel1,'Invalid To Price value');if(ret==1)
        {x.max.focus();return false;}
        if(parseInt(x.max.value)>parseInt(max)){}
        if(parseInt(x.max.value)<parseInt(min)){}}
    x.submit();}
function trim(s)
{return s.replace(/^\s*|\s*$/g,"");}
function numCheck(tel,msg,focus)
{for(var i=0;i<tel.length;i++)
    {var ch=tel.substring(i,i+1);if(ch<'0'||ch>'9')
        {alert(msg);return 1;}}}
var re_dt=/^(\d{1,2})\-(\d{1,2})\-(\d{4})$/,re_tm=/^(\d{1,2})\:(\d{1,2})\:(\d{1,2})$/,a_formats={'alpha':/^[a-zA-Z\.\-]*$/,'alphanum':/^\w+$/,'alphaphone':/^[0-9\.\-]*$/,'text':/^[a-zA-Z\.\-äÄöÖüÜßÃ‰Éé©ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßŸŠàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿš`]+\s*/,'unsigned':/^\d+$/,'integer':/^[\+\-]?\d*$/,'real':/^[\+\-]?\d*\.?\d*$/,'email':/^[0-9a-zA-Z\.\-_äÄöÖüÜßÃ‰Éé©ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßŸŠàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿš`]+\@[0-9\w\.-_]+\.[a-z]{2,4}$/,'phone':/^[\d\.\s\-]+$/,'date':function(s_date){if(!re_dt.test(s_date))
        return false;if(RegExp.$1>31||RegExp.$2>12)
        return false;var dt_test=new Date(RegExp.$3,Number(RegExp.$2-1),RegExp.$1);if(dt_test.getMonth()!=Number(RegExp.$2-1))
        return false;return true;},'time':function(s_time){if(!re_tm.test(s_time))
        return false;if(RegExp.$1>23||RegExp.$2>59||RegExp.$3>59)
        return false;return true;}},a_messages=['No form name passed to validator construction routine','No array of "%form%" form fields passed to validator construction routine','Form "%form%" can not be found in this document','Incomplete "%n%" form field descriptor entry. "l" attribute is missing','Can not find form field "%n%" in the form "%form%"','Can not find label tag (id="%t%")','Can not verify match. Field "%m%" was not found','"%l%" ist ein Pflichtfeld!','"%l%" muß mindestens %mn% Zeichen lang sein.','"%l%" darf nicht länger als %mx% Zeichen sein','Bitte verwenden Sie nur Zahlen und Buchstaben.','Die Passwort-Eingabe war nicht korrekt. Bitte geben Sie Ihr Passwort erneut ein.']
function validator(s_form,a_fields,o_cfg){this.f_error=validator_error;this.f_alert=o_cfg&&o_cfg.alert
    ?function(s_msg){alert(s_msg);return false}
    :function(){return false};if(!s_form)
    return this.f_alert(this.f_error(0));this.s_form=s_form;if(!a_fields||typeof(a_fields)!='object')
    return this.f_alert(this.f_error(1));this.a_fields=a_fields;this.a_2disable=o_cfg&&o_cfg['to_disable']&&typeof(o_cfg['to_disable'])=='object'
    ?o_cfg['to_disable']
    :[];this.exec=validator_exec;}
function validator_exec(){var o_form=document.forms[this.s_form];if(!o_form)
    return this.f_alert(this.f_error(2));b_dom=document.body&&document.body.innerHTML;for(var n_key in this.a_fields){this.a_fields[n_key]['n']=n_key;if(!this.a_fields[n_key]['l'])
        return this.f_alert(this.f_error(3,this.a_fields[n_key]));o_input=o_form.elements[n_key];if(!o_input)
        return this.f_alert(this.f_error(4,this.a_fields[n_key]));this.a_fields[n_key].o_input=o_input;}
    if(b_dom)
    for(var n_key in this.a_fields)
    if(this.a_fields[n_key]['t']){var s_labeltag=this.a_fields[n_key]['t'],e_labeltag=get_element(s_labeltag);if(!e_labeltag)
        return this.f_alert(this.f_error(5,this.a_fields[n_key]));this.a_fields[n_key].o_tag=e_labeltag;e_labeltag.className='tfvNormal';}
    for(var n_key in this.a_fields){var s_value='';o_input=this.a_fields[n_key].o_input;if(o_input.type=='checkbox')
        s_value=o_input.checked?o_input.value:'';else if(o_input.value)
        s_value=o_input.value;else if(o_input.options)
        s_value=o_input.selectedIndex>-1
        ?o_input.options[o_input.selectedIndex].value
        :null;else if(o_input.length>0)
        for(var n_index=0;n_index<o_input.length;n_index++)
        if(o_input[n_index].checked){s_value=o_input[n_index].value;break;}
        this.a_fields[n_key]['v']=s_value.replace(/(^\s+)|(\s+$)/g,'');}
    var n_errors_count=0,n_another,o_format_check;for(var n_key in this.a_fields){o_format_check=this.a_fields[n_key]['f']&&a_formats[this.a_fields[n_key]['f']]
        ?a_formats[this.a_fields[n_key]['f']]
        :null;this.a_fields[n_key].n_error=null;if(this.a_fields[n_key]['r']&&!this.a_fields[n_key]['v']){this.a_fields[n_key].n_error=1;n_errors_count++;}
        else if(this.a_fields[n_key]['mn']&&this.a_fields[n_key]['v']!=''&&String(this.a_fields[n_key]['v']).length<this.a_fields[n_key]['mn']){this.a_fields[n_key].n_error=2;n_errors_count++;}
        else if(this.a_fields[n_key]['mx']&&String(this.a_fields[n_key]['v']).length>this.a_fields[n_key]['mx']){this.a_fields[n_key].n_error=3;n_errors_count++;}
        else if(this.a_fields[n_key]['v']&&this.a_fields[n_key]['f']&&((typeof(o_format_check)=='function'
        &&!o_format_check(this.a_fields[n_key]['v']))
        ||(typeof(o_format_check)!='function'
        &&!o_format_check.test(this.a_fields[n_key]['v'])))){this.a_fields[n_key].n_error=4;n_errors_count++;}
        else if(this.a_fields[n_key]['m']){for(var n_key2 in this.a_fields)
            if(n_key2==this.a_fields[n_key]['m']){n_another=n_key2;break;}
            if(n_another==null)
            return this.f_alert(this.f_error(6,this.a_fields[n_key]));if(this.a_fields[n_another]['v']!=this.a_fields[n_key]['v']){this.a_fields[n_key]['ml']=this.a_fields[n_another]['l'];this.a_fields[n_key].n_error=5;n_errors_count++;}}}
    var s_alert_message='',e_first_error;if(n_errors_count){for(var n_key in this.a_fields){var n_error_type=this.a_fields[n_key].n_error,s_message='';if(n_error_type)
            s_message=this.f_error(n_error_type+6,this.a_fields[n_key]);if(s_message){if(!e_first_error)
                e_first_error=o_form.elements[n_key];s_alert_message+=s_message+"\n";if(b_dom&&this.a_fields[n_key].o_tag)
                this.a_fields[n_key].o_tag.className='tfvHighlight';}}
        alert(s_alert_message);if(e_first_error.focus&&e_first_error.type!='hidden'&&!e_first_error.disabled)
        eval("e_first_error.focus()");return false;}
    for(n_key in this.a_2disable)
    if(o_form.elements[this.a_2disable[n_key]])
    o_form.elements[this.a_2disable[n_key]].disabled=true;return true;}
function validator_error(n_index){var s_=a_messages[n_index],n_i=1,s_key;for(;n_i<arguments.length;n_i++)
    for(s_key in arguments[n_i])
    s_=s_.replace('%'+s_key+'%',arguments[n_i][s_key]);s_=s_.replace('%form%',this.s_form);return s_}
function get_element(s_id){return(document.all?document.all[s_id]:(document.getElementById?document.getElementById(s_id):null));}
function trim(s)
{return s.replace(/^\s*|\s*$/g,"");}
function checkEnter(e){var characterCode
    if(e&&e.which){e=e
        characterCode=e.which}
    else{e=event
        characterCode=e.keyCode}
    if(characterCode==13){document.search.submit()
        return false}
    else{return true}}
function load_page(page){window.location.href=page;}
function chgtxt(obj,linkid,linkcolor)
{if(document.getElementById)
    {document.getElementById(linkid).style.color=linkcolor}}
var disappeardelay=0
var enableanchorlink=0
var hidemenu_onclick=1
var horizontaloffset=0
var ie5=document.all
var ns6=document.getElementById&&!document.all
function getposOffset(what,offsettype){var totaloffset=(offsettype=="left")?what.offsetLeft:what.offsetTop;var parentEl=what.offsetParent;while(parentEl!=null){totaloffset=(offsettype=="left")?totaloffset+parentEl.offsetLeft:totaloffset+parentEl.offsetTop;parentEl=parentEl.offsetParent;}
    return totaloffset;}
function showhide(obj,e,visible,hidden){if(ie5||ns6)
    dropmenuobj.style.left=dropmenuobj.style.top=-500
    if(e.type=="click"&&obj.visibility==hidden||e.type=="mouseover")
    obj.visibility=visible
    else if(e.type=="click")
    obj.visibility=hidden}
function iecompattest(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body}
function clearbrowseredge(obj,whichedge){var edgeoffset=0
    if(whichedge=="rightedge"){var windowedge=ie5&&!window.opera?iecompattest().scrollLeft+iecompattest().clientWidth-15:window.pageXOffset+window.innerWidth-15
        dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
        if(windowedge-dropmenuobj.x-obj.offsetWidth<dropmenuobj.contentmeasure)
        edgeoffset=dropmenuobj.contentmeasure+obj.offsetWidth+(horizontaloffset*2)}
    else{var topedge=ie5&&!window.opera?iecompattest().scrollTop:window.pageYOffset
        var windowedge=ie5&&!window.opera?iecompattest().scrollTop+iecompattest().clientHeight-15:window.pageYOffset+window.innerHeight-18
        dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
        if(windowedge-dropmenuobj.y<dropmenuobj.contentmeasure){edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight
            if((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure)
            edgeoffset=dropmenuobj.y}}
    return edgeoffset}
function dropdownmenu(obj,e,dropmenuID){if(window.event)event.cancelBubble=true
    else if(e.stopPropagation)e.stopPropagation()
    if(typeof dropmenuobj!="undefined")
    dropmenuobj.style.visibility="hidden"
    clearhidemenu()
    if(ie5||ns6){obj.onmouseout=delayhidemenu
        dropmenuobj=document.getElementById(dropmenuID)
        if(hidemenu_onclick)dropmenuobj.onclick=function(){dropmenuobj.style.visibility='hidden'}
        dropmenuobj.onmouseover=clearhidemenu
        dropmenuobj.onmouseout=ie5?function(){dynamichide(event)}:function(event){dynamichide(event)}
        showhide(dropmenuobj.style,e,"visible","hidden")
        dropmenuobj.x=getposOffset(obj,"left")
        dropmenuobj.y=getposOffset(obj,"top")
        dropmenuobj.x=dropmenuobj.x-3;dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj,"rightedge")+obj.offsetWidth+horizontaloffset+"px"
        dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj,"bottomedge")+"px"}
    return clickreturnvalue()}
function clickreturnvalue(){if((ie5||ns6)&&!enableanchorlink)return false
    else return true}
function contains_ns6(a,b){if(b!="")
    {while(b.parentNode)
        if((b=b.parentNode)==a)
        return true;}
    return false;}
function dynamichide(e){if(ie5&&!dropmenuobj.contains(e.toElement))
    delayhidemenu()
    else if(ns6&&e.currentTarget!=e.relatedTarget&&!contains_ns6(e.currentTarget,e.relatedTarget))
    delayhidemenu()}
function delayhidemenu(){delayhide=setTimeout("dropmenuobj.style.visibility='hidden'",disappeardelay)}
function clearhidemenu(){if(typeof delayhide!="undefined")
    clearTimeout(delayhide)}
function setFocus()
{var field=document.top_search.keyword;field.focus();field.select();}
function IESelectionSend()
{if((event.which&&event.which==13)||(event.keyCode&&event.keyCode==13)){show_loading_indicator();document.top_search_form_id.submit();return false;}else{return true;}}
function FirefoxSelectionSend(myfield,e)
{var keycode;if(window.event)keycode=window.event.keyCode;else if(e)keycode=e.which;else return true;if(keycode==13)
    {show_loading_indicator();myfield.form.submit();return false;}
    else
    {return true;}}
function SetElementProperty(elemId,property,value)
{var elem=null;if(typeof(elemId)=="object")
    elem=elemId;else
    elem=document.getElementById(elemId);if((elem!=null)&&(elem.style!=null))
    {elem=elem.style;elem[property]=value;}}
function submitNewsletter()
{var newsletter_email=document.getElementById("newsletter_email").value;if(!isValidEmail(newsletter_email)){alert(valid_email_address);document.getElementById("newsletter_email").focus();}else{var url="process.php";var params="mode=subscribeNewsletter&email="+escape(newsletter_email);var response=AjaxAgent.call(url,"","",params);alert(response);}}
function submitNewsletter_contactform()
{var newsletter_email=document.getElementById("newsletter_email_contact").value;if(!isValidEmail(newsletter_email)){alert(valid_email_address);document.getElementById("newsletter_email_contact").focus();}else{var url="process.php";var params="mode=subscribeNewsletter&email="+escape(newsletter_email);var response=AjaxAgent.call(url,"","",params);alert(response);}}
function isValidEmail(s)
{var re=new RegExp("^([a-zA-Z0-9_\\-\\.]+)@"
    +"((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)"
    +"|(([a-zA-Z0-9\\-]+\\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$");return s.match(re)!=null;}
function newImage(arg){if(document.images){rslt=new Image();rslt.src=arg;return rslt;}}
function changeImages(){if(document.images&&(preloadFlag==true)){for(var i=0;i<changeImages.arguments.length;i+=2){document[changeImages.arguments[i]].src=changeImages.arguments[i+1];}}}
var preloadFlag=false;function preloadImages(){if(document.images){but_01_over=newImage(Tbut_01_over);but_01_but_02_over=newImage(Tbut_01_but_02_over);but_02_but_01_over=newImage(Tbut_02_but_01_over);but_02_over=newImage(Tbut_02_over);but_02_but_03_over=newImage(Tbut_02_but_03_over);but_03_but_02_over=newImage(Tbut_03_but_02_over);but_03_over=newImage(Tbut_03_over);loading_small=newImage("images/loading_small.gif");loading_small=newImage('images/loading.gif');icon_mk_over=newImage("images/note_pad.inside.jpg");preloadFlag=true;}}
function showLogoTip(){var url="process.php";var params="mode=showlogopopup";var showProductDetail=AjaxAgent.call(url,"","",params);document.getElementById("overDiv").innerHTML=showProductDetail;SetElementProperty('overDiv','display','block');SetElementProperty('logoframe','display','block');}
function hideLogoTip(){SetElementProperty('overDiv','display','none');SetElementProperty('logoframe','display','none');}
function getheight(){if(document.getElementById("OnTopBanner")!=null)
    {var theDiv=document.getElementById("OnTopBanner");var dheight=theDiv.offsetHeight;var newheight=parseInt(dheight);var iframe1=document.getElementById("cover_23_a");iframe1.style.top=parseInt(120+newheight)+"px";var iframe2=document.getElementById("cover_24_a");iframe2.style.top=parseInt(120+newheight)+"px";var iframe3=document.getElementById("cover_25_a");iframe3.style.top=parseInt(120+newheight)+"px";var iframe4=document.getElementById("cover_26_a");iframe4.style.top=parseInt(120+newheight)+"px";var iframe5=document.getElementById("cover_27_a");iframe5.style.top=parseInt(120+newheight)+"px";var iframe6=document.getElementById("cover_28_a");iframe6.style.top=parseInt(120+newheight)+"px";var iframe6=document.getElementById("cover_29_a");iframe6.style.top=parseInt(120+newheight)+"px";var iframe6=document.getElementById("cover_30_a");iframe6.style.top=parseInt(120+newheight)+"px";var iframe6=document.getElementById("cover_31_a");iframe6.style.top=parseInt(120+newheight)+"px";var iframe6=document.getElementById("cover_32_a");iframe6.style.top=parseInt(120+newheight)+"px";}}
function BookmarkStats(burl,title,siteid)
{var url="process.php";var params="mode=BookmarkStats&URL="+burl+"&TITLE="+title+"&SITE_ID="+siteid;AjaxAgent.call(url,"","BookmarkStatsResponse",params);}
function BookmarkStatsResponse(output)
{}
function writestyle(platform)
{}
if(navigator.appVersion.indexOf("Mac")!=-1)
{writestyle("mac")}
else
{writestyle("pc")}
function MM_reloadPage(init)
{if(init==true)with(navigator)
    {if((appName=="Netscape")&&(parseInt(appVersion)==4))
        {document.MM_pgW=innerWidth;document.MM_pgH=innerHeight;onresize=MM_reloadPage;}}
    else if(innerWidth!=document.MM_pgW||innerHeight!=document.MM_pgH)location.reload();}
MM_reloadPage(true);function emailCheck(emailStr)
{var checkTLD=0;var knownDomsPat=/^(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum)$/;var emailPat=/^(.+)@(.+)$/;var specialChars="\\(\\)><@,;:\\\\\\\"\\.\\[\\]";var validChars="\[^\\s"+specialChars+"\]";var quotedUser="(\"[^\"]*\")";var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;var atom=validChars+'+';var word="("+atom+"|"+quotedUser+")";var userPat=new RegExp("^"+word+"(\\."+word+")*$");var domainPat=new RegExp("^"+atom+"(\\."+atom+")*$");var matchArray=emailStr.match(emailPat);if(matchArray==null)
    {alert("Email address seems incorrect (check @ and .'s)");return false;}
    var user=matchArray[1];var domain=matchArray[2];for(i=0;i<user.length;i++)
    {if(user.charCodeAt(i)>127)
        {alert("Ths email username contains invalid characters.");return false;}}
    for(i=0;i<domain.length;i++)
    {if(domain.charCodeAt(i)>127)
        {alert("Ths email domain name contains invalid characters.");return false;}}
    if(user.match(userPat)==null)
    {alert("The email username doesn't seem to be valid.");return false;}
    var IPArray=domain.match(ipDomainPat);if(IPArray!=null)
    {for(var i=1;i<=4;i++)
        {if(IPArray[i]>255)
            {alert("email Destination IP address is invalid!");return false;}}}
    var atomPat=new RegExp("^"+atom+"$");var domArr=domain.split(".");var len=domArr.length;for(i=0;i<len;i++)
    {if(domArr[i].search(atomPat)==-1)
        {alert("The email domain name does not seem to be valid.");return false;}}
    if(checkTLD&&domArr[domArr.length-1].length!=2&&domArr[domArr.length-1].search(knownDomsPat)==-1)
    {alert("The email address must end in a well-known domain or two letter "+"country.");return false;}
    if(len<2)
    {alert("This email address is missing a hostname!");return false;}
    return("done");}
function isblank(s)
{for(var i=0;i<s.length;i++)
    {var c=s.charAt(i);if((c!=' ')&&(c!="\n")&&(c!="\t"))
        return false;}
    return true;}
function username_focus()
{document.dataform.username.focus();}
function set()
{if(document.dataform.username.value=="")
    {alert("Enter User Name");document.dataform.username.focus();return false;}
    if(document.dataform.passwd.value=="")
    {alert("Enter your Password");document.dataform.passwd.focus();return false;}}
function MM_callJS(jsStr){return eval(jsStr);}
function chkId()
{if(isblank(document.loginform.username.value))
    {alert("Enter Mirchi ID");document.loginform.username.focus();}
    else
    {var username=document.loginform.username.value;window.location.replace('forgotPassword.php?username='+username);}}
function username_focus()
{document.loginform.username.focus();}
function set()
{if(document.loginform.username.value=="")
    {alert("Enter User Name");document.loginform.username.focus();return false;}
    if(document.loginform.passwd.value=="")
    {alert("Enter your Password");document.loginform.passwd.focus();return false;}}
function MM_callJS(jsStr){return eval(jsStr);}
function CheckForLogin(id)
{if(!(id!="0"&&id!="")){alert("Please login to use this feature");return false;}
    if(document.PostCommtform.CommentText.value=="Add a Comment"||document.PostCommtform.CommentText.value==""){alert("Please add a comment");document.PostCommtform.CommentText.value="";document.PostCommtform.CommentText.focus();return false;}}
function clearText()
{if(document.PostCommtform.CommentText.value=="Add a Comment"){document.PostCommtform.CommentText.value="";document.PostCommtform.CommentText.focus();return false;}}
function ModeratePostAns(repid,senderId){if(document.getElementById("ans"+repid).value=="Post a Answer"||document.getElementById("ans"+repid).value==""){alert("Please add a answer");return false;}
    else{document.moderate_comm_form.postedans.value=document.getElementById("ans"+repid).value;document.moderate_comm_form.private.value=document.getElementById("prv"+repid).value;document.moderate_comm_form.scrapId.value=repid;document.moderate_comm_form.senderId.value=senderId;document.moderate_comm_form.pmode.value="PostAns";document.moderate_comm_form.submit();}}
function ModerateComment(formname,mode,scrapid)
{formname.pmode.value=mode;formname.scrapId.value=scrapid;formname.submit();}
function validActivationForm(formname)
{if(formname.username.value=="")
    {alert("Please enter username");formname.username.focus();return false;}
    else
    {var nonums=/^[0-9_]*$/;if(nonums.test(formname.username.value))
        {alert("Invalid username.");return false;}
        var iChars=" \n\t`~!@#$%^&*()+=-[]\\\';,./{}|\":<>?";for(var i=0;i<formname.username.value.length;i++)
        {if(iChars.indexOf(formname.username.value.charAt(i))!=-1)
            {alert("Invalid username");return false;}}}
    if(formname.email.value=="")
    {alert("Please enter email");formname.email.focus();return false;}
    else
    {if(emailCheck(formname.email.value)!="done")
        {formname.email.focus();return false;}}}
function EmailCheckjs(argvalue)
{if(argvalue.indexOf(" ")!=-1)
    return false;else if(argvalue.indexOf("@")==-1)
    return false;else if(argvalue.indexOf("@")==0)
    return false;else if(argvalue.indexOf("@")==(argvalue.length-1))
    return false;var arrayString=argvalue.split("@");if(arrayString.length>2)
    return false;if(arrayString[1].indexOf(".")==-1)
    return false;else if(arrayString[1].indexOf(".")==0)
    return false;else if(arrayString[1].charAt(arrayString[1].length-1)=="."){return false;}
    return true;}
function Trim(TRIM_VALUE)
{if(TRIM_VALUE.length<1)
    {return"";}
    TRIM_VALUE=RTrim(TRIM_VALUE);TRIM_VALUE=LTrim(TRIM_VALUE);if(TRIM_VALUE=="")
    {return"";}
    else
    {return TRIM_VALUE;}}
function RTrim(VALUE)
{var w_space=String.fromCharCode(32);var v_length=VALUE.length;var strTemp="";if(v_length<0)
    {return"";}
    var iTemp=v_length-1;while(iTemp>-1)
    {if(VALUE.charAt(iTemp)==w_space)
        {}
        else
        {strTemp=VALUE.substring(0,iTemp+1);break;}
        iTemp=iTemp-1;}
    return strTemp;}
function LTrim(VALUE)
{var w_space=String.fromCharCode(32);if(v_length<1)
    {return"";}
    var v_length=VALUE.length;var strTemp="";var iTemp=0;while(iTemp<v_length)
    {if(VALUE.charAt(iTemp)==w_space)
        {}
        else
        {strTemp=VALUE.substring(iTemp,v_length);break;}
        iTemp=iTemp+1;}
    return strTemp;}
function textCounter(field,counter,maxlimit,linecounter){var fieldWidth=parseInt(field.offsetWidth);var charcnt=field.value.length;if(charcnt>maxlimit){field.value=field.value.substring(0,maxlimit);}
    else{var percentage=parseInt(100-((maxlimit-charcnt)*100)/maxlimit);document.getElementById(counter).style.width=parseInt((fieldWidth*percentage)/100)+"px";document.getElementById(counter).innerHTML=""+percentage+"%"
        setcolor(document.getElementById(counter),percentage,"background-color");}}
function setcolor(obj,percentage,prop){obj.style[prop]="rgb(80%,"+(100-percentage)+"%,"+(100-percentage)+"%)";}
function goBack()
{window.location.replace('comunityList.php');document.dataform2.goback.value="y";document.dataform2.submit();}
function set1()
{df=document.dataform2;var nonums=/^[0-9_]*$/;if(nonums.test(document.dataform2.name.value))
    {alert("Community Name Can Contain only alphabets and numbers and underscore");return false;}
    var iChars=" \n\t`~!@#$%^&*()+=-[]\\\';,./{}|\":<>?";for(var i=0;i<document.dataform2.name.value.length;i++)
    {if(iChars.indexOf(document.dataform2.name.value.charAt(i))!=-1)
        {alert("Community Name Can Contain only alphabets and numbers and underscore ");return false;}}
    if(document.dataform2.name.value=="")
    {alert("Enter Community name")
        document.dataform2.name.focus();return false;}
    else if(document.dataform2.cmcategory.options[document.dataform2.cmcategory.selectedIndex].value=="")
    {alert("Select Category");document.dataform2.cmcategory.focus();return false;}
    if(isblank(document.dataform2.description.value))
    {alert("Description can not be blank")
        document.dataform2.description.focus();return false;}
    return true;}
function AddDestinations()
{var FName=document.getElementById('friends');var data="";var len=FName.length;for(i=0;i<len;i++)
    {if(FName.options[i].selected)
        {data=data+FName.options[i].value+",";}}
    document.getElementById("destination").value=data;var destiny=document.getElementById("destination").value;var deslen=destiny.length-1;if(destiny.charAt(deslen)==",")
    {document.getElementById("destination").value=destiny.substring(0,deslen);}}
function AddDestinations2()
{var FName=document.getElementById('friends');var data="";var len=FName.length;for(i=0;i<len;i++)
    {if(FName.options[i].selected)
        {data=data+FName.options[i].value+",";}}
    if(document.getElementById("destination").value.length>0)
    {document.getElementById("destination").value+=",";}
    document.getElementById("destination").value+=data;var destiny=document.getElementById("destination").value;var deslen=destiny.length-1;if(destiny.charAt(deslen)==",")
    {document.getElementById("destination").value=destiny.substring(0,deslen);}}
function member(grpname,gId)
{document.comunityList.action='listmembers.php';document.comunityList.groupnam.value=grpname;document.comunityList.groupid.value=gId;document.comunityList.submit();}
function buddygrp_back(obj)
{obj.action='list_members.php';obj.submit();}
function ChangeInboxSelectOption()
{ctr=document.inbox;if(ctr.sel_option.value=="None")
    {for(i=0;i<ctr.length;i++)
        {var el=ctr.elements[i].name;if(el.indexOf("messid")!=-1)
            {ctr.elements[i].checked=false;}}}
    if(ctr.sel_option.value=="All")
    {for(i=0;i<ctr.length;i++)
        {var el=ctr.elements[i].name;if(el.indexOf("messid")!=-1)
            {ctr.elements[i].checked=true;}}}
    if(ctr.sel_option.value=="Read")
    {for(i=0;i<ctr.length;i++)
        {var el=ctr.elements[i].name;if(el.indexOf("messid")!=-1)
            {var toggId=ctr.elements[i].id;if(toggId.indexOf("_0")!=-1)
                {ctr.elements[i].checked=false;}
                else
                {ctr.elements[i].checked=true;}}}}
    if(ctr.sel_option.value=="Unread")
    {for(i=0;i<ctr.length;i++)
        {var el=ctr.elements[i].name;if(el.indexOf("messid")!=-1)
            {var toggId=ctr.elements[i].id;if(toggId.indexOf("_0")!=-1)
                {ctr.elements[i].checked=true;}
                else
                {ctr.elements[i].checked=false;}}}}}
function changeMarkAs(txt)
{ctr=document.inbox;ctr.mark_as.value=txt;ctr.submit();}
function dele(obj)
{document.dataform1.del.value=obj;document.dataform1.submit();}
function ConfirmMessDel(id)
{var where_to=confirm("Do you want to delete this message?");if(where_to==true)
    {ctr=document.inbox;ctr.id_message.value=id;ctr.mode.value="MessageDelete";ctr.action="process.php";ctr.submit();}}
function ConfirmMessDelForCommunity(id)
{var where_to=confirm("Do you want to delete this message?");if(where_to==true)
    {ctr=document.inbox;ctr.id_message.value=id;ctr.mode.value="MessageDeleteForCommunity";ctr.action="process.php";ctr.submit();}}
function accept1(obj)
{obj.acc.value=obj.requestId.value;obj.submit();}
function reject1(obj)
{obj.rej.value=obj.requestId.value;obj.submit();}
function showInline(elName){var theElemenet=document.getElementById(elName);if(theElemenet){theElemenet.style.display="inline";}}
function hideInline(elName){var theElemenet=document.getElementById(elName);if(theElemenet){theElemenet.style.display="none";}}
function ValidateSendMessage()
{ctr=document.send_sms;if(ctr.phone.value=="")
    {alert("Please enter phone number.");ctr.phone.focus();return false;}
    if(isNaN(ctr.phone.value))
    {alert("Phone number should be numeric only.");ctr.phone.focus();return false;}
    if(ctr.phone.value.length<10)
    {alert("Invalid phone number.");ctr.phone.focus();return false;}
    return true;}
function SetSoftboardHeight()
{if(document.getElementById("oDiv")!=undefined)
    {var theDiv=document.getElementById("oDiv");var dheight=theDiv.offsetHeight;if(dheight==0)
        {theDiv.style.height=404;}
        else
        {if(dheight<404)
            {theDiv.style.height=parseInt(dheight+60);}
            else
            {theDiv.style.height=404;}}}}
function ValidateUploadCelebrityImage()
{ctr=document.send_sms;if(ctr.reference.value=="")
    {alert("Please select an image.");ctr.reference.focus();return false;}
    return true;}
function ShowHideLeft(toggleId)
{var body1=document.getElementById(toggleId);var body2=document.getElementById("link_"+toggleId);if(body1.style.display=="none")
    {body1.style.display="block";body2.className='left_category_sel';}
    else
    {body1.style.display="none";body2.className='left_category';}
    var x;for(x in myCats)
    {if(toggleId==myCats[x]){var body1=document.getElementById(myCats[x]);body1.style.display="block";var body2=document.getElementById("link_"+myCats[x]);body2.className='left_category_sel';}else{var body1=document.getElementById(myCats[x]);body1.style.display="none";var body2=document.getElementById("link_"+myCats[x]);body2.className='left_category';}}}
function ShowLeft(toggleId,sel_img)
{var body1=document.getElementById(toggleId);body1.style.display="block";}
function open_timedMenu(menuName,openTime)
{ShowHideLeft(menuName);}
function open_timedMenu_1(menuName,openTime,bgsel)
{var body1=document.getElementById(menuName);body1.style.display="none";var body2=document.getElementById("link_"+menuName);if(bgsel=="yes")
    {body2.className='left_category_sel';}else
    {body2.className='left_category';}}
function open_timedMenu_3(menuName,openTime)
{var body2=document.getElementById("link_"+menuName);body2.className='left_category_sel';}
function open_timedMenu_4(menuName,openTime)
{var body2=document.getElementById("link_"+menuName);body2.className='left_category';}
function mouseover(leftcr,openfly)
{document.getElementById(leftcr).className='leftbg_sel';var body2=document.getElementById("link_"+openfly);body2.className='left_category_sel';}
function mouseout(leftcr,openfly,bgsel)
{document.getElementById(leftcr).className='left_category';var body2=document.getElementById("link_"+openfly);if(bgsel=="yes")
    {body2.className='left_category_sel';}else
    {body2.className='left_category';}}
function mouseout_1(toggleId,toggleclr)
{var body1=document.getElementById(toggleId);body1.style.display="none";document.getElementById(toggleclr).className='left_category';var body2=document.getElementById("link_"+toggleId);body2.className='left_category';}
function mouseover_2(toggleId,toggleclr)
{var body1=document.getElementById(toggleId);body1.style.display="block";document.getElementById(toggleclr).className='leftbg_sel';var body2=document.getElementById("link_"+toggleId);body2.className='left_category_sel';}
function mouseover_topmenu(toggleId)
{var body2=document.getElementById("main_div_"+toggleId);var link_text=document.getElementById("main_div_url_"+toggleId);body2.className='leftbg_sel';link_text.style.color="#ffffff";var b_version=navigator.appVersion;var re="MSIE 6.0";var found=b_version.match(re);if(found=="MSIE 6.0")
    {if(toggleId!=804&&toggleId!=805)
        {document.getElementById("id_sort_select").style.display="none";}}}
function mouseout_topmenu(toggleId,cat)
{var body2=document.getElementById("main_div_"+toggleId);var link_text=document.getElementById("main_div_url_"+toggleId);body2.className='';if(toggleId==cat){link_text.style.color="#FF3746";}else{link_text.style.color="#000000";}
    var b_version=navigator.appVersion;var re="MSIE 6.0";var found=b_version.match(re);if(found=="MSIE 6.0")
    {if(toggleId!=804&&toggleId!=805)
        {document.getElementById("id_sort_select").style.display="inline";}}}
function mouseover_topmenu_off(toggleId)
{var body2=document.getElementById("main_div_"+toggleId);var link_text=document.getElementById("main_div_url_"+toggleId);body2.className='sublink_se';link_text.className='sublink_se';}
function mouseout_topmenu_off(toggleId,cat)
{var body2=document.getElementById("main_div_"+toggleId);var link_text=document.getElementById("main_div_url_"+toggleId);body2.className='';if(toggleId==cat){link_text.className='sublink_se';}else{link_text.className='sublink';}}
function ShowLeftAsSelected(ctn_sel){if(ctn_sel!="")
    {var body2=document.getElementById(ctn_sel);body2.className='left_navigation_sublink_selected';}}
function ShowTopAsSelected(ctn_sel){if(ctn_sel!="")
    {var body2=document.getElementById(ctn_sel);body2.className='sublink_sel menu_heading';}}
function ShowBottomAsSelected(ctn_sel){var body2=document.getElementById(ctn_sel);body2.className='sublink_sel';}
function add_to_cart(product_id,prodprice,prodtitle,cur_id)
{var url="process.php";var params="mode=AddToCart&ProdNum="+product_id+"&ProdPrice="+prodprice+"&ProdTitle="+escape(prodtitle)+"&cur_id="+cur_id;var response=AjaxAgent.call(url,"","",params);document.getElementById("marksheet_detail").innerHTML=response;return response;}
function add_to_cart_layer(product_id,prodprice,prodtitle,cur_id)
{var url="process.php";var params="mode=AddToCart&ProdNum="+product_id+"&ProdPrice="+prodprice+"&ProdTitle="+escape(prodtitle)+"&cur_id="+cur_id;var response=AjaxAgent.call(url,"","",params);var object=document.getElementById('link_'+product_id);var img=object.firstChild;if(img.innerHTML.search(/Artikel von Merkzettel entfernen/)!=-1){if(response){img.innerHTML='<font class="Headline_brand_underline">Artikel merken</font>'}}
    else
    {if(response){img.innerHTML='<font class="Headline_brand_underline_red">Artikel von Merkzettel entfernen</font>';}}
    document.getElementById("marksheet_detail").innerHTML=response;return response;}
function add_to_cart_layer_grid(product_id,prodprice,prodtitle,cur_id)
{var url="process.php";var params="mode=AddToCart&ProdNum="+product_id+"&ProdPrice="+prodprice+"&ProdTitle="+escape(prodtitle)+"&cur_id="+cur_id;var response=AjaxAgent.call(url,"","",params);var object=document.getElementById('link_'+product_id);var img=object.firstChild;if(img.innerHTML.search(/gemerkt/)!=-1){if(response){img.innerHTML='<font class="Headline_brand_underline">merken</font>'}}
    else
    {if(response){img.innerHTML='<font class="Headline_brand_underline_red">gemerkt</font>';}}
    document.getElementById("marksheet_detail").innerHTML=response;return response;}
function delete_from_cart_layer(product_id)
{var url="process.php";var params="mode=DeleteFromCart&ProdNum="+product_id;var response=AjaxAgent.call(url,"","",params);var object=document.getElementById('link_'+product_id);var img=object.firstChild;if(img.innerHTML.search(/Artikel von Merkzettel entfernen/)!=-1){if(response){img.innerHTML='<font class="Headline_brand_underline">Artikel merken</font>'}}
    else
    {if(response){img.innerHTML='<font class="Headline_brand_underline_red">Artikel von Merkzettel entfernen</font>';}}
    document.getElementById("marksheet_detail").innerHTML=response;return response;}
function delete_from_cart_layer_grid(product_id)
{var url="process.php";var params="mode=DeleteFromCart&ProdNum="+product_id;var response=AjaxAgent.call(url,"","",params);var object=document.getElementById('link_'+product_id);var img=object.firstChild;if(img.innerHTML.search(/gemerkt/)!=-1){if(response){img.innerHTML='<font class="Headline_brand_underline">merken</font>'}}
    else
    {if(response){img.innerHTML='<font class="Headline_brand_underline_red">gemerkt</font>';}}
    document.getElementById("marksheet_detail").innerHTML=response;return response;}
function delete_from_cart(product_id)
{var url="process.php";var params="mode=DeleteFromCart&ProdNum="+product_id;var response=AjaxAgent.call(url,"","",params);document.getElementById("marksheet_detail").innerHTML=response;if(document.URL.search(/marksheet.php$/)!=-1){location.reload();}
    return response;}
function switch_marksheet(product_id,price_original,product_name_original,currency){var object=document.getElementById('link_'+product_id);if(object){var img=object.firstChild;if(img.src.search(/merkzettel_2/)!=-1){var response=delete_from_cart(product_id);if(response){rand_flt=Math.random();img.src='images/merkzettel_1.gif?'+rand_flt;img.alt='In den Merkzettel übernehmen';img.title=img.alt;}}else{var response=add_to_cart(product_id,price_original,product_name_original,currency);if(response){rand_flt=Math.random();img.src='images/merkzettel_2.gif?'+rand_flt;img.alt='Vom Merkzettel entfernen';img.title=img.alt;}}}else{}
    return;}
function switch_marksheet_list2(product_id,price_original,product_name_original,currency){var object=document.getElementById('link_'+product_id);if(object){var img=object.firstChild;if(img.innerHTML.search(/gemerkt/)!=-1){var response=delete_from_cart(product_id);if(response){img.innerHTML='<font class="Headline_brand_underline">merken</font>'}
            window.location.reload();}else{var response=add_to_cart(product_id,price_original,product_name_original,currency);if(response){img.innerHTML='<font class="Headline_brand_underline_red">gemerkt</font>';}}}else{}
    return;}
function switch_marksheet_detail(product_id,price_original,product_name_original,currency){var img=document.getElementById('link_'+product_id);if(img){if(img.innerHTML.search(/Artikel von Merkzettel entfernen/)!=-1){var response=delete_from_cart(product_id);if(response){img.innerHTML='<font class="Headline_brand_underline">Artikel merken</font>'}}else{var response=add_to_cart(product_id,price_original,product_name_original,currency);if(response){img.innerHTML='<font class="Headline_brand_underline_red">Artikel von Merkzettel entfernen</font>';}}}else{}
    return;}
function switch_marksheet_bk(product_id,price_original,product_name_original,currency){var object=document.getElementById('link_'+product_id);if(object){var img=object.firstChild;if(img.innerHTML.search(/gemerkt/)!=-1){var response=delete_from_cart(product_id);if(response){img.innerHTML='<font class="Headline_brand_underline">merken</font>'}}else{var response=add_to_cart(product_id,price_original,product_name_original,currency);if(response){img.innerHTML='<font class="Headline_brand_underline_red">gemerkt</font>';}}}else{}
    return;}
function delete_from_user_cart(product_id)
{var url="process.php";var params="mode=DeleteFromCart&ProdNum="+product_id;var response=AjaxAgent.call(url,"","",params);window.location.reload();return;}
function delete_from_user_cart_layer(product_id)
{var url="process.php";var params="mode=DeleteFromCart&ProdNum="+product_id;var response=AjaxAgent.call(url,"","",params);window.location.reload();return;}
function reload_marksheetdetail(output)
{document.getElementById("marksheet_detail").innerHTML=output;}
function reload_marksheet_page()
{var url="process.php";var params="mode=reloadMarksheetDetailPage";var output=AjaxAgent.call(url,"","",params);document.getElementById("marksheet_detail").innerHTML=output;return;}
function getNextProductsAjax(page,cat,limit,bgclass,min,max)
{var sort=document.getElementById("id_sort_select").value;var queryString;queryString="page="+page;queryString+="&sort="+sort;urllink = document.getElementById('paggingflag').value+"#"+queryString;document.getElementById('ajaxpaggingFlagSet').value="start";window.location=urllink;}
function getNextProductsAjaxHash(cat,limit,bgclass,min,max)
{hashValue=window.location.hash;var page;page=1;if(hashValue.indexOf("#page=")!=-1 || hashValue.indexOf("#sort=")!=-1){hashValueArr=hashValue.split("&");page=hashValueArr[0];page=page.replace("#page=",'');sort=hashValueArr[1];sort=sort.replace("sort=",'');document.getElementById("popupmaskloading").className=bgclass;var top_link=document.getElementById("top_hidden").value;var url="product.php";if(document.getElementById("hide_header")){if(page==1 && sort=='Popularity'){document.getElementById("hide_header").style.display="block";}else{document.getElementById("hide_header").style.display="none";}}if(limit==""){var params="page="+page+"&cat="+cat+"&sort="+sort+"&GetIt=Ajax&min="+min+"&max="+max+"&top_link="+top_link;}else{var params="page="+page+"&cat="+cat+"&sort="+sort+"&limit="+limit+"&GetIt=Ajax&min="+min+"&max="+max+"&top_link="+top_link;}AjaxAgent.call(url,"","getNextProductsAjaxResponse",params);}else{if(document.getElementById('paggingflag').value!='' && document.getElementById('ajaxpaggingFlag').value!='' && document.getElementById('ajaxpaggingFlagSet').value=='start'){var ajaxpaggingFlag=document.getElementById("ajaxpaggingFlag").value;ajaxpaggingFlagArr=ajaxpaggingFlag.split("&");page=ajaxpaggingFlagArr[0];page=page.replace("#page=",'');sort=ajaxpaggingFlagArr[1];sort=sort.replace("sort=",'');document.getElementById("popupmaskloading").className=bgclass;var top_link=document.getElementById("top_hidden").value;var url="product.php";if(document.getElementById("hide_header")){if(page==1 && sort=='Popularity'){document.getElementById("hide_header").style.display="block";}else{document.getElementById("hide_header").style.display="none";}}if(limit==""){var params="page="+page+"&cat="+cat+"&sort="+sort+"&GetIt=Ajax&min="+min+"&max="+max+"&top_link="+top_link;}else{var params="page="+page+"&cat="+cat+"&sort="+sort+"&limit="+limit+"&GetIt=Ajax&min="+min+"&max="+max+"&top_link="+top_link;}AjaxAgent.call(url,"","getNextProductsAjaxResponse",params);}}}
function getNextProductsAjaxResponse(output)
{document.getElementById('products_center_id').innerHTML=output;var scriptMarker="<!--JSCODE-->";var indexOfStart=0;var indexOfMarker=0;while((indexOfMarker=output.indexOf(scriptMarker,indexOfStart))!=-1){indexOfStart=indexOfMarker+scriptMarker.length;var indexOfEnd=output.indexOf(scriptMarker,indexOfStart);var substring=output.substring(indexOfStart,indexOfEnd);eval(substring);indexOfStart=indexOfEnd+1;}
    ReloadPixelImages();window.scrollTo(0,0);
    if(document.getElementById('lazyload').value=="on")
    {
    $(".load").lazyload({ 
        placeholder : "/images/loading.gif",
        effect : "fadeIn"
    });
    }
}
function getNextPartnerProductsAjax(page,pid,limit,bgclass,min,max)
{var sort=document.getElementById("id_sort_select").value;var queryString;queryString="page="+page;queryString+="&sort="+sort;urllink = document.getElementById('paggingflag').value+"#"+queryString;document.getElementById('ajaxpaggingFlagSet').value="start";window.location=urllink;}
function getNextPartnerProductsAjaxHash(pid, limit, bgclass,min,max)
{hashValue=window.location.hash;var page;page=1;if(hashValue.indexOf("#page=")!=-1 || hashValue.indexOf("#sort=")!=-1){hashValueArr=hashValue.split("&");page=hashValueArr[0];page=page.replace("#page=",'');sort=hashValueArr[1];sort=sort.replace("sort=",'');document.getElementById("popupmaskloading").className=bgclass;var top_link=document.getElementById("top_hidden").value;var url = "partner_product.php";if(limit==""){var params = "page="+page+"&pid="+pid+"&sort="+sort+"&GetIt=Ajax&min="+min+"&max="+max+"&top_link="+top_link;}else{var params = "page="+page+"&pid="+pid+"&sort="+sort+"&limit="+limit+"&GetIt=Ajax&min="+min+"&max="+max+"&top_link="+top_link;}AjaxAgent.call(url,"","getNextPartnerProductsAjaxResponse",params);}else{if(document.getElementById('paggingflag').value!='' && document.getElementById('ajaxpaggingFlag').value!='' && document.getElementById('ajaxpaggingFlagSet').value=='start'){var ajaxpaggingFlag=document.getElementById("ajaxpaggingFlag").value;ajaxpaggingFlagArr=ajaxpaggingFlag.split("&");page=ajaxpaggingFlagArr[0];page=page.replace("#page=",'');sort=ajaxpaggingFlagArr[1];sort=sort.replace("sort=",'');document.getElementById("popupmaskloading").className=bgclass;var top_link=document.getElementById("top_hidden").value;var url = "partner_product.php";if(limit==""){var params = "page="+page+"&pid="+pid+"&sort="+sort+"&GetIt=Ajax&min="+min+"&max="+max+"&top_link="+top_link;}else{var params = "page="+page+"&pid="+pid+"&sort="+sort+"&limit="+limit+"&GetIt=Ajax&min="+min+"&max="+max+"&top_link="+top_link;}AjaxAgent.call(url,"","getNextPartnerProductsAjaxResponse",params);}}}
function getNextPartnerProductsAjaxResponse(output)
{document.getElementById('products_center_id').innerHTML=output;var scriptMarker="<!--JSCODE-->";var indexOfStart=0;var indexOfMarker=0;while((indexOfMarker=output.indexOf(scriptMarker,indexOfStart))!=-1){indexOfStart=indexOfMarker+scriptMarker.length;var indexOfEnd=output.indexOf(scriptMarker,indexOfStart);var substring=output.substring(indexOfStart,indexOfEnd);eval(substring);indexOfStart=indexOfEnd+1;}
    ReloadPixelImages();window.scrollTo(0,0);
    if(document.getElementById('lazyload').value=="on")
    {
    $(".load").lazyload({ 
        placeholder : "/images/loading.gif",
        effect : "fadeIn"
    });
    }
}
function getNextResultAjax(page,cat,limit,bgclass,is_sort,min,max)
{var sort=document.getElementById("id_sort_select").value;var queryString;queryString="page="+page;queryString+="&sort="+sort;urllink = document.getElementById('paggingflag').value+"#"+queryString;document.getElementById('ajaxpaggingFlagSet').value="start";window.location=urllink;}
function getNextResultAjaxHash(cat,limit, bgclass,min,max){hashValue=window.location.hash;var page;page=1;if(hashValue.indexOf("#page=")!=-1 || hashValue.indexOf("#sort=")!=-1){hashValueArr=hashValue.split("&");page=hashValueArr[0];page=page.replace("#page=",'');sort=hashValueArr[1];sort=sort.replace("sort=",'');document.getElementById("popupmaskloading").className=bgclass;var top_link=document.getElementById("top_hidden").value;var url = "result.php";if(arguments[4]=="yes"){var params = "page="+page+"&cat="+cat+"&sort="+sort+"&sortchange=yes&previous_value="+document.sortform.value+"&GetIt=Ajax&min="+min+"&max="+max+"&top_link="+top_link;}else{if(limit==""){var params = "page="+page+"&cat="+cat+"&sort="+sort+"&GetIt=Ajax&min="+min+"&max="+max+"&top_link="+top_link;}else{var params = "page="+page+"&cat="+cat+"&sort="+sort+"&limit="+limit+"&GetIt=Ajax&min="+min+"&max="+max+"&top_link="+top_link;}}AjaxAgent.call(url,"","getNextResultAjaxResponse",params);}else{if(document.getElementById('paggingflag').value!='' && document.getElementById('ajaxpaggingFlag').value!='' && document.getElementById('ajaxpaggingFlagSet').value=='start'){var ajaxpaggingFlag=document.getElementById("ajaxpaggingFlag").value;ajaxpaggingFlagArr=ajaxpaggingFlag.split("&");page=ajaxpaggingFlagArr[0];page=page.replace("#page=",'');sort=ajaxpaggingFlagArr[1];sort=sort.replace("sort=",'');document.getElementById("popupmaskloading").className=bgclass;var top_link=document.getElementById("top_hidden").value;var url = "result.php";if(arguments[4]=="yes"){var params = "page="+page+"&cat="+cat+"&sort="+sort+"&sortchange=yes&previous_value="+document.sortform.value+"&GetIt=Ajax&min="+min+"&max="+max+"&top_link="+top_link;}else{if(limit==""){var params = "page="+page+"&cat="+cat+"&sort="+sort+"&GetIt=Ajax&min="+min+"&max="+max+"&top_link="+top_link;}else{var params = "page="+page+"&cat="+cat+"&sort="+sort+"&limit="+limit+"&GetIt=Ajax&min="+min+"&max="+max+"&top_link="+top_link;}}AjaxAgent.call(url,"","getNextResultAjaxResponse",params);}}}
function getNextMarkenResultAjax(page,cat,limit,bgclass,is_sort,min,max,speaking_url)
{var sort=document.getElementById("id_sort_select").value;var queryString;queryString="page="+page;queryString+="&sort="+sort;urllink = document.getElementById('paggingflag').value+"#"+queryString;document.getElementById('ajaxpaggingFlagSet').value="start";window.location=urllink;}
function getNextMarkenResultAjaxHash(cat, limit, bgclass,min,max,speaking_url){hashValue=window.location.hash;var page;page=1;if(hashValue.indexOf("#page=")!=-1 || hashValue.indexOf("#sort=")!=-1){hashValueArr=hashValue.split("&");page=hashValueArr[0];page=page.replace("#page=",'');sort=hashValueArr[1];sort=sort.replace("sort=",'');document.getElementById("popupmaskloading").className=bgclass;var top_link=document.getElementById("top_hidden").value;var url = speaking_url;if(arguments[4]=="yes"){var params = "page="+page+"&cat="+cat+"&sort="+sort+"&sortchange=yes&previous_value="+document.sortform.value+"&GetIt=Ajax&min="+min+"&max="+max+"&top_link="+top_link;}else{if(limit==""){var params = "page="+page+"&cat="+cat+"&sort="+sort+"&GetIt=Ajax&min="+min+"&max="+max+"&top_link="+top_link;}else{var params = "page="+page+"&cat="+cat+"&sort="+sort+"&limit="+limit+"&GetIt=Ajax&min="+min+"&max="+max+"&top_link="+top_link;}}AjaxAgent.call(url,"","getNextResultAjaxResponse",params);}else{if(document.getElementById('paggingflag').value!='' && document.getElementById('ajaxpaggingFlag').value!='' && document.getElementById('ajaxpaggingFlagSet').value=='start'){var ajaxpaggingFlag=document.getElementById("ajaxpaggingFlag").value;ajaxpaggingFlagArr=ajaxpaggingFlag.split("&");page=ajaxpaggingFlagArr[0];page=page.replace("#page=",'');sort=ajaxpaggingFlagArr[1];sort=sort.replace("sort=",'');document.getElementById("popupmaskloading").className=bgclass;var top_link=document.getElementById("top_hidden").value;var url = speaking_url;if(arguments[4]=="yes"){var params = "page="+page+"&cat="+cat+"&sort="+sort+"&sortchange=yes&previous_value="+document.sortform.value+"&GetIt=Ajax&min="+min+"&max="+max+"&top_link="+top_link;}else{if(limit==""){var params = "page="+page+"&cat="+cat+"&sort="+sort+"&GetIt=Ajax&min="+min+"&max="+max+"&top_link="+top_link;}else{var params = "page="+page+"&cat="+cat+"&sort="+sort+"&limit="+limit+"&GetIt=Ajax&min="+min+"&max="+max+"&top_link="+top_link;}}AjaxAgent.call(url,"","getNextResultAjaxResponse",params);}}}
function getNextResultAjaxResponse(output)
{document.getElementById('products_center_id').innerHTML=output;var scriptMarker="<!--JSCODE-->";var indexOfStart=0;var indexOfMarker=0;while((indexOfMarker=output.indexOf(scriptMarker,indexOfStart))!=-1){indexOfStart=indexOfMarker+scriptMarker.length;var indexOfEnd=output.indexOf(scriptMarker,indexOfStart);var substring=output.substring(indexOfStart,indexOfEnd);eval(substring);indexOfStart=indexOfEnd+1;}
    $('.load').ready(function(){$('.load').each(function() {$(this).css('height', '230px');$(this).css('width', '185px');$(this).css('background-repeat', 'no-repeat');$(this).css('background-position', 'center');});});ReloadPixelImages();window.scrollTo(0,0);
    if(document.getElementById('lazyload').value=="on")
    {
    $(".load").lazyload({ 
        placeholder : "/images/loading.gif",
        effect : "fadeIn"
    });
    }
}
function SetCookie(name,value,expires,path,domain,secure){document.cookie=name+"="+escape(value)+
    ((expires)?"; expires="+expires.toGMTString():"")+
    ((path)?"; path="+path:"")+
    ((domain)?"; domain="+domain:"")+
    ((secure)?"; secure":"");}
function getArtDetailFilter(cat)
{var url="process.php";var params="mode=getArtDetailFilter&cat="+cat;AjaxAgent.call(url,"","getArtDetailFilterResponse",params);}
function getArtDetailFilterResponse(output)
{document.getElementById('art_detail').innerHTML=output;}
function getLoadPriceFilterAjax()
{var url="process.php";var params="mode=getLoadPriceFilterAjax";AjaxAgent.call(url,"","getLoadPriceFilterAjaxResponse",params);}
function getLoadPriceFilterAjaxResponse(output)
{document.getElementById('price_filter').innerHTML=output;getLoadOtherCategoryFilterAjax();}
function getLoadOtherCategoryFilterAjax()
{var url="process.php";var params="mode=getLoadOtherCategoryFilterAjax";AjaxAgent.call(url,"","getLoadOtherCategoryFilterAjaxResponse",params);}
function getLoadOtherCategoryFilterAjaxResponse(output)
{document.getElementById('other_category_filter').innerHTML=output;getLoadOurPartnerFilterAjax();}
function getLoadOurPartnerFilterAjax()
{var url="process.php";var params="mode=getLoadOurPartnerFilterAjax";AjaxAgent.call(url,"","getLoadOurPartnerFilterAjaxResponse",params);}
function getLoadOurPartnerFilterAjaxResponse(output)
{document.getElementById('our_partenrs').innerHTML=output;}
function getSearchCategoryFilter()
{var url="process.php";var params="mode=getSearchCategoryFilter";AjaxAgent.call(url,"","getSearchCategoryFilterResponse",params);}
function getSearchCategoryFilterResponse(output)
{document.getElementById('search_category_filter').innerHTML=output;}
function getLoadPriceFilterAjaxResult()
{var url="process.php";var params="mode=getLoadPriceFilterAjaxResult";AjaxAgent.call(url,"","getLoadPriceFilterAjaxResultResponse",params);}
function getLoadPriceFilterAjaxResultResponse(output)
{document.getElementById('price_filter').innerHTML=output;getLoadOtherCategoryFilterAjaxResult();}
function getLoadOtherCategoryFilterAjaxResult()
{var url="process.php";var params="mode=getLoadOtherCategoryFilterAjaxResult";AjaxAgent.call(url,"","getLoadOtherCategoryFilterAjaxResultResponse",params);}
function getLoadOtherCategoryFilterAjaxResultResponse(output)
{document.getElementById('other_category_filter').innerHTML=output;getLoadOurPartnerFilterAjaxResult();}
function getLoadOurPartnerFilterAjaxResult()
{var url="process.php";var params="mode=getLoadOurPartnerFilterAjaxResult";AjaxAgent.call(url,"","getLoadOurPartnerFilterAjaxResultResponse",params);}
function getLoadOurPartnerFilterAjaxResultResponse(output)
{document.getElementById('our_partenrs').innerHTML=output;}
var featuredcontentslider={ajaxloadingmsg:'<div style="margin: 20px 0 0 20px"><img src="images/loading.gif" /> Fetching slider Contents. Please wait...</div>',bustajaxcache:true,enablepersist:true,settingcaches:{},jumpTo:function(fcsid,pagenumber){this.turnpage(this.settingcaches[fcsid],pagenumber)},ajaxconnect:function(setting){var page_request=false
        if(window.ActiveXObject){try{page_request=new ActiveXObject("Msxml2.XMLHTTP")}
            catch(e){try{page_request=new ActiveXObject("Microsoft.XMLHTTP")}
                catch(e){}}}
        else if(window.XMLHttpRequest)
        page_request=new XMLHttpRequest()
        else
        return false
        var pageurl=setting.contentsource[1]
        page_request.onreadystatechange=function(){featuredcontentslider.ajaxpopulate(page_request,setting)}
        document.getElementById(setting.id).innerHTML=this.ajaxloadingmsg
        var bustcache=(!this.bustajaxcache)?"":(pageurl.indexOf("?")!=-1)?"&"+new Date().getTime():"?"+new Date().getTime()
        page_request.open('GET',pageurl+bustcache,true)
        page_request.send(null)},ajaxpopulate:function(page_request,setting){if(page_request.readyState==4&&(page_request.status==200||window.location.href.indexOf("http")==-1)){document.getElementById(setting.id).innerHTML=page_request.responseText
            this.buildpaginate(setting)}},buildcontentdivs:function(setting){var alldivs=document.getElementById(setting.id).getElementsByTagName("div")
        for(var i=0;i<alldivs.length;i++){if(this.css(alldivs[i],"contentdiv","check")){setting.contentdivs.push(alldivs[i])
                alldivs[i].style.display="none"}}},buildpaginate:function(setting){this.buildcontentdivs(setting)
        var sliderdiv=document.getElementById(setting.id)
        var pdiv=document.getElementById("paginate-"+setting.id)
        var phtml=""
        var toc=setting.toc
        var nextprev=setting.nextprev
        if(typeof toc=="string"&&toc!="markup"||typeof toc=="object"){for(var i=1;i<=setting.contentdivs.length;i++){phtml+='<a href="#'+i+'" class="toc">'+(typeof toc=="string"?toc.replace(/#increment/,i):toc[i-1])+'</a>'
                if(i<3)
                {phtml+="<div style='float:left;margin-left:10px;margin-right:10px' class='Headline_Animation'>/</div>";}}
            phtml=(nextprev[0]!=''?'<a href="#prev" class="prev">'+nextprev[0]+'</a> ':'')+phtml+(nextprev[1]!=''?'<a href="#next" class="next">'+nextprev[1]+'</a>':'')
            pdiv.innerHTML=phtml}
        var pdivlinks=pdiv.getElementsByTagName("a")
        var toclinkscount=0
        for(var i=0;i<pdivlinks.length;i++){if(this.css(pdivlinks[i],"toc","check")){if(toclinkscount>setting.contentdivs.length-1){pdivlinks[i].style.display="none"
                    continue}
                pdivlinks[i].setAttribute("rel",++toclinkscount)
                pdivlinks[i][setting.revealtype]=function(){featuredcontentslider.turnpage(setting,this.getAttribute("rel"))
                    return false}
                setting.toclinks.push(pdivlinks[i])}
            else if(this.css(pdivlinks[i],"prev","check")||this.css(pdivlinks[i],"next","check")){pdivlinks[i].onclick=function(){featuredcontentslider.turnpage(setting,this.className)
                    return false}}}
        this.turnpage(setting,setting.currentpage,true)
        if(setting.autorotate[0]){pdiv[setting.revealtype]=function(){featuredcontentslider.cleartimer(setting,window["fcsautorun"+setting.id])}
            sliderdiv["onclick"]=function(){featuredcontentslider.cleartimer(setting,window["fcsautorun"+setting.id])}
            setting.autorotate[1]=setting.autorotate[1]+(1/setting.enablefade[1]*50)
            this.autorotate(setting)}},urlparamselect:function(fcsid){var result=window.location.search.match(new RegExp(fcsid+"=(\\d+)","i"))
        return(result==null)?null:parseInt(RegExp.$1)},turnpage:function(setting,thepage,autocall){var currentpage=setting.currentpage
        var totalpages=setting.contentdivs.length
        var turntopage=(/prev/i.test(thepage))?currentpage-1:(/next/i.test(thepage))?currentpage+1:parseInt(thepage)
        turntopage=(turntopage<1)?totalpages:(turntopage>totalpages)?1:turntopage
        if(turntopage==setting.currentpage&&typeof autocall=="undefined")
        return
        setting.currentpage=turntopage
        if(setting.topzindex>3)setting.topzindex=1;setting.contentdivs[turntopage-1].style.zIndex=++setting.topzindex
        this.cleartimer(setting,window["fcsfade"+setting.id])
        setting.cacheprevpage=setting.prevpage
        if(setting.enablefade[0]==true){setting.curopacity=0
            this.fadeup(setting)}
        if(setting.enablefade[0]==false){setting.contentdivs[setting.prevpage-1].style.display="none"
            setting.onChange(setting.prevpage,setting.currentpage)}
        setting.contentdivs[turntopage-1].style.visibility="visible"
        setting.contentdivs[turntopage-1].style.display="block"
        if(setting.prevpage<=setting.toclinks.length)
        this.css(setting.toclinks[setting.prevpage-1],"selected","remove")
        if(turntopage<=setting.toclinks.length)
        this.css(setting.toclinks[turntopage-1],"selected","add")
        setting.prevpage=turntopage
        if(this.enablepersist)
        this.setCookie("fcspersist"+setting.id,turntopage)},setopacity:function(setting,value){var targetobject=setting.contentdivs[setting.currentpage-1]
        if(targetobject.filters&&targetobject.filters[0]){if(typeof targetobject.filters[0].opacity=="number")
            targetobject.filters[0].opacity=value*100
            else
            targetobject.style.filter="alpha(opacity="+value*100+")"}
        else if(typeof targetobject.style.MozOpacity!="undefined")
        targetobject.style.MozOpacity=value
        else if(typeof targetobject.style.opacity!="undefined")
        targetobject.style.opacity=value
        setting.curopacity=value},fadeup:function(setting){if(setting.curopacity<1){this.setopacity(setting,setting.curopacity+setting.enablefade[1])
            window["fcsfade"+setting.id]=setTimeout(function(){featuredcontentslider.fadeup(setting)},50)}
        else{if(setting.cacheprevpage!=setting.currentpage)
            setting.contentdivs[setting.cacheprevpage-1].style.display="none"
            setting.onChange(setting.cacheprevpage,setting.currentpage)}},cleartimer:function(setting,timervar){if(typeof timervar!="undefined"){clearTimeout(timervar)
            clearInterval(timervar)
            if(setting.cacheprevpage!=setting.currentpage){setting.contentdivs[setting.cacheprevpage-1].style.display="none"}}},css:function(el,targetclass,action){var needle=new RegExp("(^|\\s+)"+targetclass+"($|\\s+)","ig")
        if(action=="check")
        return needle.test(el.className)
        else if(action=="remove")
        el.className=el.className.replace(needle,"")
        else if(action=="add")
        el.className+=" "+targetclass},autorotate:function(setting){window["fcsautorun"+setting.id]=setInterval(function(){featuredcontentslider.turnpage(setting,"next")},setting.autorotate[1])},getCookie:function(Name){var re=new RegExp(Name+"=[^;]+","i");if(document.cookie.match(re))
        return document.cookie.match(re)[0].split("=")[1]
        return null},setCookie:function(name,value){document.cookie=name+"="+value},init:function(setting){var persistedpage=this.getCookie("fcspersist"+setting.id)||1
        var urlselectedpage=this.urlparamselect(setting.id)
        this.settingcaches[setting.id]=setting
        setting.contentdivs=[]
        setting.toclinks=[]
        setting.topzindex=0
        setting.currentpage=urlselectedpage||((this.enablepersist)?persistedpage:1)
        setting.prevpage=setting.currentpage
        setting.revealtype="on"+(setting.revealtype||"click")
        setting.curopacity=0
        setting.onChange=setting.onChange||function(){}
        if(setting.contentsource[0]=="inline")
        this.buildpaginate(setting)
        if(setting.contentsource[0]=="ajax")
        this.ajaxconnect(setting)}}
var t_id=setInterval(animate,20);var pos=0;var dir=2;var len=0;function animate()
{var elem=document.getElementById('progress');if(elem!=null){if(pos==0)len+=dir;if(len>32||pos>79)pos+=dir;if(pos>79)len-=dir;if(pos>79&&len==0)pos=0;elem.style.left=pos;elem.style.width=len;}}
function remove_loading(){this.clearInterval(t_id);var targelem=document.getElementById('loader_container');targelem.style.display='none';targelem.style.visibility='hidden';var t_id=setInterval(animate,60);}
var offsetfrommouse=[15,25];var displayduration=0;var defaultimageheight=40;var defaultimagewidth=40;var timer;function gettrailobj(){if(document.getElementById)
    return document.getElementById("preview_div").style}
function gettrailobjnostyle(){if(document.getElementById)
    return document.getElementById("preview_div")}
function truebody(){return(!window.opera&&document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body}
function hidetrail(){gettrailobj().display="none";document.onmousemove=""
    gettrailobj().left="-500px"
    clearTimeout(timer);}
function showtrail(imagename,title,width,height){i=imagename
    t=title
    w=width
    h=height
    timer=setTimeout("show('"+i+"',t,w,h);",200);}
function show(imagename,title,width,height){var docwidth=document.all?truebody().scrollLeft+truebody().clientWidth:pageXOffset+window.innerWidth-offsetfrommouse[0]
    var docheight=document.all?Math.min(truebody().scrollHeight,truebody().clientHeight):Math.min(window.innerHeight)
    if((navigator.userAgent.indexOf("Konqueror")==-1||navigator.userAgent.indexOf("Firefox")!=-1||(navigator.userAgent.indexOf("Opera")==-1&&navigator.appVersion.indexOf("MSIE")!=-1))&&(docwidth>650&&docheight>500)){(width==0)?width=defaultimagewidth:'';(height==0)?height=defaultimageheight:'';width+=30
        height+=55
        defaultimageheight=height
        defaultimagewidth=width
        document.onmousemove=followmouse;newHTML='<div class="border_preview" style="width:'+width+'px;height:'+height+'px"><div id="loader_container"><div id="loader"><div align="center">Loading template preview...</div><div id="loader_bg"><div id="progress"> </div></div></div></div>';newHTML=newHTML+'<font size="2" face="Tahoma" color="#766a62"><b>'+' '+title+'</b></font>'
        newHTML=newHTML+'<div class="preview_temp_load"><img onload="javascript:remove_loading();" src="'+imagename+'" border="0"></div>';newHTML=newHTML+'</div>';if(navigator.userAgent.indexOf("MSIE")!=-1&&navigator.userAgent.indexOf("Opera")==-1){newHTML=newHTML+'<iframe src="about:blank" scrolling="no" frameborder="0" width="'+width+'" height="'+height+'"></iframe>';}
        gettrailobjnostyle().innerHTML=newHTML;gettrailobj().display="block";}}
function followmouse(e){var xcoord=offsetfrommouse[0]
    var ycoord=offsetfrommouse[1]
    var docwidth=document.all?truebody().scrollLeft+truebody().clientWidth:pageXOffset+window.innerWidth-15
    var docheight=document.all?Math.min(truebody().scrollHeight,truebody().clientHeight):Math.min(window.innerHeight)
    if(typeof e!="undefined"){if(docwidth-e.pageX<defaultimagewidth+2*offsetfrommouse[0]){xcoord=e.pageX-xcoord-defaultimagewidth;}else{xcoord+=e.pageX;}
        if(docheight-e.pageY<defaultimageheight+2*offsetfrommouse[1]){ycoord+=e.pageY-Math.max(0,(2*offsetfrommouse[1]+defaultimageheight+e.pageY-docheight-truebody().scrollTop));}else{ycoord+=e.pageY;}}else if(typeof window.event!="undefined"){if(docwidth-event.clientX<defaultimagewidth+2*offsetfrommouse[0]){xcoord=event.clientX+truebody().scrollLeft-xcoord-defaultimagewidth;}else{xcoord+=truebody().scrollLeft+event.clientX}
        if(docheight-event.clientY<(defaultimageheight+2*offsetfrommouse[1])){ycoord+=event.clientY+truebody().scrollTop-Math.max(0,(2*offsetfrommouse[1]+defaultimageheight+event.clientY-docheight));}else{ycoord+=truebody().scrollTop+event.clientY;}}
    gettrailobj().left=xcoord+"px"
    gettrailobj().top=ycoord+"px"}
function getHTTPObject(){var xmlhttp;/*@cc_on
    @if (@_jscript_version >= 5)
    try {
    xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
    try {
    xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    } catch (E) {
    xmlhttp = false;
    }
    }
    @else
    xmlhttp = false;
    @end @*/
    if(!xmlhttp&&typeof XMLHttpRequest!='undefined'){try{xmlhttp=new XMLHttpRequest();xmlhttp.overrideMimeType("text/xml");}catch(e){xmlhttp=false;}}
    return xmlhttp;}
function ChangeCountry(str)
{var url="process.php";var params="mode=GetStateSelectBox&q="+str+"&sid="+Math.random();var htmlRecord=AjaxAgent.call(url,"","",params);var outputArr=htmlRecord.split("|");document.getElementById("divCustomerInfo").innerHTML=outputArr[0];document.getElementById("CountryCode").value=outputArr[1];}
function ChangeCountryResponse()
{if(BackgroundtableHttp.readyState==4)
    {if(BackgroundtableHttp.responseText.indexOf('invalid')==-1)
        {try
            {var htmlRecord=BackgroundtableHttp.responseText;var outputArr=htmlRecord.split("|");document.getElementById("divCustomerInfo").innerHTML=outputArr[0];document.getElementById("CountryCode").value=outputArr[1];BackgroundtableBusy=false;}
            catch(e)
            {alert("Error: "+e);}}}}
function checkUserAvailability(str)
{document.getElementById('divUserNameInfo').innerHTML="<img style='border:0px' src='js/loading.gif'>";var url="process.php";var params="mode=checkUserAvailability&q="+str+"&sid="+Math.random();var htmlRecord=AjaxAgent.call(url,"","",params);document.getElementById("divUserNameInfo").innerHTML=htmlRecord;}
function checkUserAvailabilityResponse()
{if(BackgroundtableHttp.readyState==4)
    {if(BackgroundtableHttp.responseText.indexOf('invalid')==-1)
        {try
            {var htmlRecord=BackgroundtableHttp.responseText;document.getElementById("divUserNameInfo").innerHTML=htmlRecord;BackgroundtableBusy=false;}
            catch(e)
            {alert("Error: "+e);}}}}
function DeleteMyPic()
{var url="process.php";var params="mode=DeleteMyPic&sid="+Math.random();var htmlRecord=AjaxAgent.call(url,"","",params);if(htmlRecord=="DONE")
    {document.getElementById('user_present_pic').style.display="none";alert("Das Bild wurde erfolgreich gelöscht!");}}
function DeleteMyPicResponse()
{if(BackgroundtableHttp.readyState==4)
    {if(BackgroundtableHttp.responseText.indexOf('invalid')==-1)
        {try
            {var htmlRecord=BackgroundtableHttp.responseText;if(htmlRecord=="DONE")
                {document.getElementById('user_present_pic').style.display="none";alert("Das Bild wurde erfolgreich gelöscht!");}
                BackgroundtableBusy=false;}
            catch(e)
            {alert("Error: "+e);}}}}
function sendMailToFriends(mode,product_id,fromname,fromemail,friendemails,personalmess)
{var url="process.php";var params="mode="+mode+"&product_id="+product_id+"&fromname="+fromname+"&fromemail="+fromemail+"&friendemails="+friendemails+"&personalmess="+encodeURIComponent(personalmess);var htmlRecord=AjaxAgent.call(url,"","",params);if(htmlRecord=='errordetail')
    {window.top.location='index.php';}
    else
    {document.getElementById('shopproductdetail').innerHTML=htmlRecord;}}
function sendMailToFriendsResponse()
{if(BackgroundtableHttp.readyState==4)
    {if(BackgroundtableHttp.responseText.indexOf('invalid')==-1)
        {try
            {var htmlRecord=BackgroundtableHttp.responseText;if(htmlRecord=='errordetail')
                {window.top.location='index.php';}
                else
                {document.getElementById('shopproductdetail').innerHTML=htmlRecord;}
                BackgroundtableBusy=false;}
            catch(e)
            {alert("Error: "+e);}}}}
function ShowImport(importoption)
{document.getElementById('showimportsemail').innerHTML="<img style='border:0px' src='js/loading.gif'>";var url="process.php";var params="mode=ShowImport&importoption="+importoption;var htmlRecord=AjaxAgent.call(url,"","",params);var outputArr=new Array();outputArr=htmlRecord.split(":--");document.getElementById('importimages').innerHTML=outputArr[0];document.getElementById('showimportsemail').innerHTML=outputArr[1];}
function ShowImportResponse()
{if(BackgroundtableHttp.readyState==4)
    {if(BackgroundtableHttp.responseText.indexOf('invalid')==-1)
        {try
            {var htmlRecord=BackgroundtableHttp.responseText;var outputArr=new Array();outputArr=htmlRecord.split(":--");document.getElementById('importimages').innerHTML=outputArr[0];document.getElementById('showimportsemail').innerHTML=outputArr[1];BackgroundtableBusy=false;}
            catch(e)
            {alert("Error: "+e);}}}}
function ImportEmails(spimport,username,password)
{document.getElementById('processdiv').innerHTML="<img style='border:0px' src='js/loading.gif'>";var url="process.php";var params="mode=ImportEmails&spimport="+spimport+"&username="+username+"&password="+password;var htmlRecord=AjaxAgent.call(url,"","",params);document.getElementById('processdiv').innerHTML="";document.getElementById('showimportsemail').innerHTML=htmlRecord;}
function ImportEmailsResponse()
{if(BackgroundtableHttp.readyState==4)
    {if(BackgroundtableHttp.responseText.indexOf('invalid')==-1)
        {try
            {var htmlRecord=BackgroundtableHttp.responseText;document.getElementById('processdiv').innerHTML="";document.getElementById('showimportsemail').innerHTML=htmlRecord;BackgroundtableBusy=false;}
            catch(e)
            {alert("Error: "+e);}}}}
function ForgotMyPassword()
{var email=document.getElementById('forgot_email').value;if(Trim(email)=="")
    {alert("Bitte Ihre Email eingeben!");return false;}
    if(EmailCheckjs(email)==false)
    {alert("Ungültige Email-Adresse!");return false;}
    document.getElementById('forgot_pass').innerHTML="<img style='border:0px' src='js/loading.gif'>";var url="process.php";var params="mode=ForgotPassword&email="+escape(email)+"&sid="+Math.random();var htmlRecord=AjaxAgent.call(url,"","",params);document.getElementById('forgot_pass').innerHTML=htmlRecord;}
function ForgotMyPasswordResponse()
{if(BackgroundtableHttp.readyState==4)
    {if(BackgroundtableHttp.responseText.indexOf('invalid')==-1)
        {try
            {var htmlRecord=BackgroundtableHttp.responseText;document.getElementById('forgot_pass').innerHTML=htmlRecord;BackgroundtableBusy=false;}
            catch(e)
            {alert("Error: "+e);}}}}
function DeleteCommunityPic(groupId)
{var url="process.php";var params="mode=DeleteCommunityPic&gId="+groupId+"&sid="+Math.random();var htmlRecord=AjaxAgent.call(url,"","",params);document.getElementById('user_pic_div').innerHTML="Deleting...";if(htmlRecord=="DONE")
    {document.getElementById('user_present_pic').style.display="none";alert("Das Bild wurde erfolgreich entfernt!");}}
function DeleteCommunityPicResponse()
{if(BackgroundtableHttp.readyState==4)
    {if(BackgroundtableHttp.responseText.indexOf('invalid')==-1)
        {try
            {var htmlRecord=BackgroundtableHttp.responseText;if(htmlRecord=="DONE")
                {document.getElementById('user_present_pic').style.display="none";alert("Das Bild wurde erfolgreich entfernt!");}
                BackgroundtableBusy=false;}
            catch(e)
            {alert("Error: "+e);}}}}
function sendMailModelToFriends(mode,vname,name1,email,email1,email2,email3,personalmess)
{document.getElementById('emailmodelsenddiv').innerHTML="<img src='js/loading.gif'>";var url="process.php";var params="mode="+mode+"&vname="+vname+"&name1="+name1+"&email="+email+"&email1="+email1+"&email2="+email2+"&email3="+email3+"&personalmess="+encodeURIComponent(personalmess);var htmlRecord=AjaxAgent.call(url,"","",params);document.getElementById('emailmodelsenddiv').innerHTML=htmlRecord;}
function sendModelToFriendsResponse()
{if(BackgroundtableHttp.readyState==4)
    {if(BackgroundtableHttp.responseText.indexOf('invalid')==-1)
        {try
            {var htmlRecord=BackgroundtableHttp.responseText;document.getElementById('emailmodelsenddiv').innerHTML=htmlRecord;BackgroundtableBusy=false;}
            catch(e)
            {alert("Error: "+e);}}}}
function locadvideottrenwalk(TbID,LID)
{document.getElementById('popupmaskloading_t').innerHTML="<img src='js/loading_big.gif'>";document.getElementById("popupmaskloading_t").className='popupMaskForLoading_trend';var url="trendwalk_ajax.php";var params="TbID="+TbID+"&LID="+LID;var htmlRecord=AjaxAgent.call(url,"","",params);if(document.getElementById("selectedVideo").value!="")
    {var selectId=document.getElementById("selectedVideo").value;document.getElementById("i_"+selectId).style.width="70px";document.getElementById("i_"+selectId).style.height="93px";document.getElementById("i_"+selectId).className="trendwalkborder2";document.getElementById("i_"+LID).style.width="70px";document.getElementById("i_"+LID).style.height="93px";document.getElementById("i_"+LID).className="trendwalkborder";}
    else
    {document.getElementById("i_"+LID).style.width="70px";document.getElementById("i_"+LID).style.height="93px";document.getElementById("i_"+LID).className="trendwalkborder";}
    document.getElementById("selectedVideo").value=LID;document.getElementById('loadcontent').innerHTML=htmlRecord;document.getElementById("popupmaskloading_t").className='popupmaskloading_t_no_display';document.getElementById('popupmaskloading_t').innerHTML="";}
function sendrepondtrendwalk()
{if(BackgroundtableHttp.readyState==4)
    {if(BackgroundtableHttp.responseText.indexOf('invalid')==-1)
        {try
            {var htmlRecord=BackgroundtableHttp.responseText;document.getElementById('loadcontent').innerHTML=htmlRecord;document.getElementById("popupmaskloading_t").className='popupmaskloading_t_no_display';document.getElementById('popupmaskloading_t').innerHTML="";BackgroundtableBusy=false;}
            catch(e)
            {alert("Error: "+e);}}}}
function showhide(proid)
{var col_array=document.getElementById("proarray").value.split(",");var part_num=0;while(part_num<col_array.length)
    {if(proid==col_array[part_num])
        {var divid='p_'+proid;var tableid='t_'+proid;document.getElementById(divid).style.display='inline';document.getElementById(tableid).style.border='2px solid #f00000';var linkId=proid+'_link';var clickURLId=proid+'_clickURL';if(document.getElementById(linkId).name!='')
            {document.getElementById(linkId).target='_blank';document.getElementById(linkId).href=document.getElementById(clickURLId).href;}
            else
            {document.getElementById(linkId).name=proid;}}
        else
        {var divid='p_'+col_array[part_num];var tableid='t_'+col_array[part_num];document.getElementById(divid).style.display='none';document.getElementById(tableid).style.border='2px solid white';var linkId=col_array[part_num]+'_link';document.getElementById(linkId).name='';document.getElementById(linkId).href='JavaScript:void(0);';document.getElementById(linkId).target='';}
        part_num+=1;}}
function locadvideotstyle(SID)
{document.getElementById('popupmaskloading_t').innerHTML="<img src='js/loading_big.gif'>";document.getElementById("popupmaskloading_t").className='popupMaskForLoading_trend';var url="starstyle_ajax.php?SID="+SID;var url_track="http://www.fashion.de/starstyle.php?SID="+SID;var params="SID="+SID;var htmlRecord=AjaxAgent.call(url,"","",params);if(document.getElementById("selectedVideo").value!="")
    {var selectId=document.getElementById("selectedVideo").value;document.getElementById("i_"+selectId).style.width="70px";document.getElementById("i_"+selectId).style.height="93px";document.getElementById("i_"+selectId).className="trendwalkborder2";document.getElementById("i_"+SID).style.width="70px";document.getElementById("i_"+SID).style.height="93px";document.getElementById("i_"+SID).className="trendwalkborder";}
    else
    {document.getElementById("i_"+SID).style.width="70px";document.getElementById("i_"+SID).style.height="93px";document.getElementById("i_"+SID).className="trendwalkborder";}
    document.getElementById("selectedVideo").value=SID;var htmlRecord1=htmlRecord.split("|||");document.getElementById('loadcontent').innerHTML=htmlRecord1[0];document.getElementById('star_name').innerHTML=htmlRecord1[1];document.getElementById('style_check').innerHTML=htmlRecord1[2];document.getElementById("popupmaskloading_t").className='popupmaskloading_t_no_display';document.getElementById('popupmaskloading_t').innerHTML="";ReloadPixelImages();dcsMultiTrack('DCS.dcsuri',url_track);}
function URLEncode(plaintext)
{var SAFECHARS="0123456789"+
    "ABCDEFGHIJKLMNOPQRSTUVWXYZ"+
    "abcdefghijklmnopqrstuvwxyz"+
    "-_.!~*'()";var HEX="0123456789ABCDEF";var encoded="";for(var i=0;i<plaintext.length;i++){var ch=plaintext.charAt(i);if(ch==" "){encoded+="+";}else if(SAFECHARS.indexOf(ch)!=-1){encoded+=ch;}else{var charCode=ch.charCodeAt(0);if(charCode>255){alert("Unicode Character '"
                +ch
                +"' cannot be encoded using standard URL encoding.\n"+
                "(URL encoding only supports 8-bit characters.)\n"+
                "A space (+) will be substituted.");encoded+="+";}else{encoded+="%";encoded+=HEX.charAt((charCode>>4)&0xF);encoded+=HEX.charAt(charCode&0xF);}}}
    return encoded;}
function URLDecode()
{var HEXCHARS="0123456789ABCDEFabcdef";var encoded=document.URLForm.F2.value;var plaintext="";var i=0;while(i<encoded.length){var ch=encoded.charAt(i);if(ch=="+"){plaintext+=" ";i++;}else if(ch=="%"){if(i<(encoded.length-2)
            &&HEXCHARS.indexOf(encoded.charAt(i+1))!=-1
            &&HEXCHARS.indexOf(encoded.charAt(i+2))!=-1){plaintext+=unescape(encoded.substr(i,3));i+=3;}else{alert('Bad escape combination near ...'+encoded.substr(i));plaintext+="%[ERROR]";i++;}}else{plaintext+=ch;i++;}}
    document.URLForm.F1.value=plaintext;document.URLForm.F1.select();return false;}
function sendrepondstyle()
{if(BackgroundtableHttp.readyState==4)
    {if(BackgroundtableHttp.responseText.indexOf('invalid')==-1)
        {try
            {var htmlRecord=BackgroundtableHttp.responseText;var htmlRecord1=htmlRecord.split("|||");document.getElementById('loadcontent').innerHTML=htmlRecord1[0];document.getElementById('star_name').innerHTML=htmlRecord1[1];document.getElementById('style_check').innerHTML=htmlRecord1[2];document.getElementById("popupmaskloading_t").className='popupmaskloading_t_no_display';document.getElementById('popupmaskloading_t').innerHTML="";ReloadPixelImages();BackgroundtableBusy=false;}
            catch(e)
            {alert("Error: "+e);}}}}
function showhide_style(proid)
{var col_array=document.getElementById("proarray").value.split(",");var part_num=0;while(part_num<col_array.length)
    {if(proid==col_array[part_num])
        {var divid='p_'+proid;var tableid='t_'+proid;document.getElementById(divid).className='display_inline';document.getElementById(tableid).style.border='2px solid #f00000';var linkId=proid+'_link';var clickURLId=proid+'_clickURL';if(document.getElementById(linkId).name!='' && document.getElementById(linkId).name!='starstyle_page_display_images')
            {;document.getElementById(linkId).target='_blank';document.getElementById(linkId).href=document.getElementById(clickURLId).href;}
            else
            {document.getElementById(linkId).name=proid;}}
        else
        {var divid='p_'+col_array[part_num];var tableid='t_'+col_array[part_num];document.getElementById(divid).className='login_layer_error_dispaly_none';document.getElementById(tableid).style.border='2px solid white';var linkId=col_array[part_num]+'_link';document.getElementById(linkId).name='';document.getElementById(linkId).href='JavaScript:void(0);';document.getElementById(linkId).target='';}
        part_num+=1;}}
function switch_marksheet_list(product_id,price_original,product_name_original,currency){var object=document.getElementById('link_'+product_id);if(object){var img=object.firstChild;if(img.innerHTML.search(/Artikel von Merkzettel entfernen/)!=-1){var response=delete_from_cart(product_id);if(response){img.innerHTML='<font class="linkL2Rb">Artikel merken</font>'}}else{var response=add_to_cart(product_id,price_original,product_name_original,currency);if(response){img.innerHTML='<font class="linkL2Red">Artikel von Merkzettel entfernen</font>';}}}else{}
    return;}
function getNextView()
{var link=document.getElementById('view').value;window.location.href=link;}
function getProductPerPage()
{var link=document.getElementById('product_per_page').value;window.location.href=link;}
function showProductTip_Layer(proid,mode){var url="shopproductdetail.php";var params="product_id="+proid;var showProductDetail=AjaxAgent.call(url,"","",params);showProductDetail_arr=showProductDetail.split("##");document.getElementById('shopproductdetail').innerHTML=showProductDetail_arr[0];var srlH=document.documentElement.scrollTop;if(srlH=="0"){var srlH=document.body.scrollTop}if(srlH>0){document.getElementById('product_layer_border').style.top=Math.floor(parseInt(srlH)+40)+'px'}var pid_cid=showProductDetail_arr[1];picalike(pid_cid);document.getElementById('shopproductdetail').style.display='block';if(mode=='zoom'){dcsMultiTrack('DCS.dcsuri','/zoom_shopproductdetail.php','WT.ti',proid)}else{dcsMultiTrack('DCS.dcsuri','/shopproductdetail.php','WT.ti',proid)}}
function showProductTip_Layer_response()
{if(BackgroundtableHttp.readyState==4)
    {if(BackgroundtableHttp.responseText.indexOf('invalid')==-1)
        {try
            {var htmlRecord=BackgroundtableHttp.responseText;document.getElementById('shopproductdetail').style.display='block';document.getElementById('shopproductdetail').innerHTML=htmlRecord;BackgroundtableBusy=false;}
            catch(e)
            {alert("Error: "+e);}}}}
function tt_HideInit_close()
{document.getElementById('shopproductdetail').style.display='none';}
function send_to_friend_Layer(proid)
{var url="send_to_friend.php";var params="product_id="+proid;var htmlRecord=AjaxAgent.call(url,"","",params);document.getElementById('shopproductdetail').style.display='block';document.getElementById('shopproductdetail').innerHTML=htmlRecord;}
function send_to_friend_Layer_response()
{if(BackgroundtableHttp.readyState==4)
    {if(BackgroundtableHttp.responseText.indexOf('invalid')==-1)
        {try
            {var htmlRecord=BackgroundtableHttp.responseText;document.getElementById('shopproductdetail').style.display='block';document.getElementById('shopproductdetail').innerHTML=htmlRecord;BackgroundtableBusy=false;}
            catch(e)
            {alert("Error: "+e);}}}}
function CheckSendEmailField(form,mode)
{var yname="Bitte geben Sie Ihren Namen an!";var yemail="Das Feld Mailadresse ist leer.";var yemail_value="Mailadresse ungültig.";var friendemails="Bitte geben Sie mindestens eine Empfängeradresse an.";var tempemail_msg="Mailadresse ungültig.";var ctr=eval("document."+form);if(ctr.yname.value=="")
    {alert(yname);ctr.yname.focus();return false;}
    if(ctr.yemail.value=="")
    {alert(yemail);ctr.yemail.focus();return false;}
    if(EmailCheckjs(ctr.yemail.value)==false)
    {alert(yemail_value);ctr.yemail.focus();return false;}
    if(ctr.friendemails.value=="")
    {alert(friendemails);ctr.friendemails.focus();return false;}
    freinds_emails=ctr.friendemails.value;var col_array=freinds_emails.split(",");var part_num=0;while(part_num<col_array.length)
    {tempemail=Trim(col_array[part_num]);if(EmailCheckjs(tempemail)==false)
        {alert(tempemail+" "+tempemail_msg);ctr.friendemails.focus();return false;}
        part_num+=1;}
    personalmessage=URLEncode(ctr.mess.value);product_id=ctr.product_id.value;sendMailToFriends(mode,product_id,ctr.yname.value,ctr.yemail.value,freinds_emails,personalmessage);}
function ImportFriendsEmail()
{var xx=document.sendlink;if(xx.username.value=="")
    {alert("Username is required.");xx.username.focus();return false;}
    if(xx.password.value=="")
    {alert("Password is required.");xx.password.focus();return false;}
    var spimport=xx.spimport.value;var username=xx.username.value;var password=xx.password.value;ImportEmails(spimport,username,password);}
function ImportImage()
{document.getElementById('selectedimportimg').src="images/email"+document.sendlink.spimport.value+".gif";}
function toggle(id)
{var img='img_'+id;if(document.getElementById(id).style.display=='block')
    {document.getElementById(id).style.display='none';document.getElementById(img).src='images/left_navigation/filter_plus.gif';}
    else
    {document.getElementById(id).style.display='block';document.getElementById(img).src='images/left_navigation/filter_minus.gif';}}
function toggle(id)
{var img='img_'+id;if(document.getElementById(id).style.display=='block')
    {document.getElementById(id).style.display='none';document.getElementById(img).src='images/left_navigation/filter_plus.gif';}
    else
    {document.getElementById(id).style.display='block';document.getElementById(img).src='images/left_navigation/filter_minus.gif';}}
function toggle_off(id)
{var img='img_'+id;if(document.getElementById(id).style.display=='none')
    {document.getElementById(id).style.display='block';document.getElementById(img).src='images/left_navigation/filter_minus.gif';}
    else
    {document.getElementById(id).style.display='none';document.getElementById(img).src='images/left_navigation/filter_plus.gif';}}
var gPopupMask=null;var gPopupContainer=null;var gPopFrame=null;var gReturnFunc;var gPopupIsShown=false;var gDefaultPage="loading.html";var gHideSelects=true;var gReturnVal=null;var gTabIndexes=new Array();var gTabbableTags=new Array("A","BUTTON","TEXTAREA","INPUT","IFRAME");if(!document.all){document.onkeypress=keyDownHandler;}
function initPopUp(){theBody=document.getElementsByTagName('BODY')[0];popmask=document.createElement('div');popmask.id='popupMask';popcont=document.createElement('div');popcont.id='popupContainer';popcont.innerHTML=''+
    '<div id="popupInner">'+
    '<div id="popupTitleBar">'+
    '<div id="popupTitle"></div>'+
    '<div id="popupControls">'+
    '<img src="images/close_submodal.gif" onclick="hidePopWin(false);" id="popCloseBox" />'+
    '</div>'+
    '</div>'+
    '<iframe src="'+gDefaultPage+'" style="width:100%;height:100%;background-color:transparent;" scrolling="auto" frameborder="0" allowtransparency="true" id="popupFrame" name="popupFrame" width="100%" height="100%"></iframe>'+
    '</div>';theBody.appendChild(popmask);theBody.appendChild(popcont);gPopupMask=document.getElementById("popupMask");gPopupContainer=document.getElementById("popupContainer");gPopFrame=document.getElementById("popupFrame");var brsVersion=parseInt(window.navigator.appVersion.charAt(0),10);if(brsVersion<=6&&window.navigator.userAgent.indexOf("MSIE")>-1){gHideSelects=true;}
    var elms=document.getElementsByTagName('a');for(i=0;i<elms.length;i++){if(elms[i].className.indexOf("submodal")==0){elms[i].onclick=function(){var width=400;var height=200;params=this.className.split('-');if(params.length==3){width=parseInt(params[1]);height=parseInt(params[2]);}
                showPopWin(this.href,width,height,null);return false;}}}}
addEvent(window,"load",initPopUp);function showPopWin(url,width,height,returnFunc,showCloseBox){if(showCloseBox==null||showCloseBox==true){document.getElementById("popCloseBox").style.display="none";}else{document.getElementById("popCloseBox").style.display="none";}
    gPopupIsShown=true;disableTabIndexes();gPopupMask.style.display="block";gPopupContainer.style.display="block";centerPopWin(width,height);var titleBarHeight=parseInt(document.getElementById("popupTitleBar").offsetHeight,10);gPopupContainer.style.width=width+"px";gPopupContainer.style.height=(height+titleBarHeight)+"px";setMaskSize();gPopFrame.style.width=parseInt(document.getElementById("popupTitleBar").offsetWidth,10)+"px";gPopFrame.style.height=(height)+"px";gPopFrame.src=url;gReturnFunc=returnFunc;if(gHideSelects==true){hideSelectBoxes();}
    window.setTimeout("setPopTitle();",600);}
var gi=0;function centerPopWin(width,height){if(gPopupIsShown==true){if(width==null||isNaN(width)){width=gPopupContainer.offsetWidth;}
        if(height==null){height=gPopupContainer.offsetHeight;}
        var theBody=document.getElementsByTagName("BODY")[0];var scTop=parseInt(getScrollTop(),10);var scLeft=parseInt(theBody.scrollLeft,10);setMaskSize();var titleBarHeight=parseInt(document.getElementById("popupTitleBar").offsetHeight,10);var fullHeight=getViewportHeight();var fullWidth=getViewportWidth();gPopupContainer.style.top=(scTop+((fullHeight-(height+titleBarHeight))/2))+"px";gPopupContainer.style.left=(scLeft+((fullWidth-width)/2))+"px";}}
addEvent(window,"resize",centerPopWin);addEvent(window,"scroll",centerPopWin);window.onscroll=centerPopWin;function setMaskSize(){var theBody=document.getElementsByTagName("BODY")[0];var fullHeight=getViewportHeight();var fullWidth=getViewportWidth();if(fullHeight>theBody.scrollHeight){popHeight=fullHeight;}else{popHeight=theBody.scrollHeight;}
    if(fullWidth>theBody.scrollWidth){popWidth=fullWidth;}else{popWidth=theBody.scrollWidth;}
    gPopupMask.style.height=popHeight+"px";gPopupMask.style.width=popWidth+"px";}
function hidePopWin(callReturnFunc){gPopupIsShown=false;var theBody=document.getElementsByTagName("BODY")[0];theBody.style.overflow="";restoreTabIndexes();if(gPopupMask==null){return;}
    gPopupMask.style.display="none";gPopupContainer.style.display="none";if(callReturnFunc==true&&gReturnFunc!=null){gReturnVal=window.frames["popupFrame"].returnVal;window.setTimeout('gReturnFunc(gReturnVal);',1);}
    gPopFrame.src=gDefaultPage;if(gHideSelects==true){displaySelectBoxes();}}
function setPopTitle(){return;if(window.frames["popupFrame"].document.title==null){window.setTimeout("setPopTitle();",10);}else{document.getElementById("popupTitle").innerHTML=window.frames["popupFrame"].document.title;}}
function keyDownHandler(e){if(gPopupIsShown&&e.keyCode==9)return false;}
function disableTabIndexes(){if(document.all){var i=0;for(var j=0;j<gTabbableTags.length;j++){var tagElements=document.getElementsByTagName(gTabbableTags[j]);for(var k=0;k<tagElements.length;k++){gTabIndexes[i]=tagElements[k].tabIndex;tagElements[k].tabIndex="-1";i++;}}}}
function restoreTabIndexes(){if(document.all){var i=0;for(var j=0;j<gTabbableTags.length;j++){var tagElements=document.getElementsByTagName(gTabbableTags[j]);for(var k=0;k<tagElements.length;k++){tagElements[k].tabIndex=gTabIndexes[i];tagElements[k].tabEnabled=true;i++;}}}}
function hideSelectBoxes(){for(var i=0;i<document.forms.length;i++){for(var e=0;e<document.forms[i].length;e++){if(document.forms[i].elements[e].tagName=="SELECT"){document.forms[i].elements[e].style.visibility="hidden";}}}}
function displaySelectBoxes(){for(var i=0;i<document.forms.length;i++){for(var e=0;e<document.forms[i].length;e++){if(document.forms[i].elements[e].tagName=="SELECT"){document.forms[i].elements[e].style.visibility="visible";}}}}
function showPopWin2(url,width,height,returnFunc,showCloseBox){if(showCloseBox==null||showCloseBox==true){document.getElementById("popCloseBox").style.display="block";}else{document.getElementById("popCloseBox").style.display="none";}
    gPopupIsShown=true;disableTabIndexes();gPopupMask.style.display="block";gPopupMask.onclick=function(){window.parent.location='myprofile.php';}
    gPopupContainer.style.display="block";centerPopWin(width,height);var titleBarHeight="0";gPopupContainer.style.display="none";setMaskSize();gPopFrame.style.display="none";gReturnFunc=returnFunc;if(gHideSelects==true){hideSelectBoxes();}
    window.setTimeout("setPopTitle();",600);}
var tabdropdown={disappeardelay:00,disablemenuclick:false,enableiframeshim:1,dropmenuobj:null,ie:document.all,firefox:document.getElementById&&!document.all,previousmenuitem:null,currentpageurl:window.location.href.replace("http://"+window.location.hostname,"").replace(/^\//,""),getposOffset:function(what,offsettype){var totaloffset=(offsettype=="left")?what.offsetLeft:what.offsetTop;var parentEl=what.offsetParent;while(parentEl!=null){totaloffset=(offsettype=="left")?totaloffset+parentEl.offsetLeft:totaloffset+parentEl.offsetTop;parentEl=parentEl.offsetParent;}
        return totaloffset;},showhide:function(obj,e,obj2){if(this.ie||this.firefox)
        this.dropmenuobj.style.left=this.dropmenuobj.style.top="-500px"
        if(e.type=="click"&&obj.visibility==hidden||e.type=="mouseover"){if(obj2.parentNode.className.indexOf("default")==-1)
            obj2.parentNode.className="selected"
            obj.visibility="visible"}
        else if(e.type=="click")
        obj.visibility="hidden"},iecompattest:function(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body},clearbrowseredge:function(obj,whichedge){var edgeoffset=0
        if(whichedge=="rightedge"){var windowedge=1024;this.dropmenuobj.contentmeasure=this.dropmenuobj.offsetWidth
            if(windowedge-this.dropmenuobj.x<this.dropmenuobj.contentmeasure)
            edgeoffset=this.dropmenuobj.contentmeasure-obj.offsetWidth}
        else{var topedge=this.ie&&!window.opera?this.standardbody.scrollTop:window.pageYOffset
            var windowedge=this.ie&&!window.opera?this.standardbody.scrollTop+this.standardbody.clientHeight-15:window.pageYOffset+window.innerHeight-18
            this.dropmenuobj.contentmeasure=this.dropmenuobj.offsetHeight
            if(windowedge-this.dropmenuobj.y<this.dropmenuobj.contentmeasure){edgeoffset=this.dropmenuobj.contentmeasure+obj.offsetHeight
                if((this.dropmenuobj.y-topedge)<this.dropmenuobj.contentmeasure)
                edgeoffset=this.dropmenuobj.y+obj.offsetHeight-topedge}
            this.dropmenuobj.firstlink.style.borderTopWidth=(edgeoffset==0)?0:"1px"}
        return edgeoffset},dropit:function(obj,e,dropmenuID){if(this.dropmenuobj!=null){this.dropmenuobj.style.visibility="hidden"
            if(this.previousmenuitem!=null&&this.previousmenuitem!=obj){if(this.previousmenuitem.parentNode.className.indexOf("default")==-1)
                this.previousmenuitem.parentNode.className=""}}
        this.clearhidemenu()
        if(this.ie||this.firefox){obj.onmouseout=function(){tabdropdown.delayhidemenu(obj)}
            obj.onclick=function(){return!tabdropdown.disablemenuclick}
            this.dropmenuobj=document.getElementById(dropmenuID)
            this.dropmenuobj.onmouseover=function(){tabdropdown.clearhidemenu()}
            this.dropmenuobj.onmouseout=function(e){tabdropdown.dynamichide(e,obj)}
            this.dropmenuobj.onclick=function(){tabdropdown.delayhidemenu(obj)}
            this.showhide(this.dropmenuobj.style,e,obj)
            this.dropmenuobj.x=this.getposOffset(obj,"left")
            this.dropmenuobj.y=this.getposOffset(obj,"top")
            this.dropmenuobj.style.left="200px"
            this.dropmenuobj.style.top=this.dropmenuobj.y-this.clearbrowseredge(obj,"bottomedge")+obj.offsetHeight+0+"px"
            this.previousmenuitem=obj
            this.positionshim()}},contains_firefox:function(a,b){if(b!=null)
        {while(b.parentNode)
            if((b=b.parentNode)==a)
            return true;}
        return false;},dynamichide:function(e,obj2){var evtobj=window.event?window.event:e
        if(this.ie&&!this.dropmenuobj.contains(evtobj.toElement))
        this.delayhidemenu(obj2)
        else if(this.firefox&&e.currentTarget!=evtobj.relatedTarget&&!this.contains_firefox(evtobj.currentTarget,evtobj.relatedTarget))
        this.delayhidemenu(obj2)},delayhidemenu:function(obj2){this.delayhide=setTimeout(function(){tabdropdown.dropmenuobj.style.visibility='hidden';if(obj2.parentNode.className.indexOf('default')==-1)obj2.parentNode.className=''},this.disappeardelay)},clearhidemenu:function(){if(this.delayhide!="undefined")
        clearTimeout(this.delayhide)},positionshim:function(){if(this.enableiframeshim&&typeof this.shimobject!="undefined"){if(this.dropmenuobj.style.visibility=="visible"){this.shimobject.style.width=this.dropmenuobj.offsetWidth+"px"
                this.shimobject.style.height=this.dropmenuobj.offsetHeight+"px"
                this.shimobject.style.left=this.dropmenuobj.style.left
                this.shimobject.style.top=this.dropmenuobj.style.top}
            this.shimobject.style.display=(this.dropmenuobj.style.visibility=="visible")?"block":"none"}},hideshim:function(){if(this.enableiframeshim&&typeof this.shimobject!="undefined")
        this.shimobject.style.display='none'},isSelected:function(menuurl){var menuurl=menuurl.replace("http://"+menuurl.hostname,"").replace(/^\//,"")
        return(tabdropdown.currentpageurl==menuurl)},init:function(menuid,dselected){this.standardbody=(document.compatMode=="CSS1Compat")?document.documentElement:document.body
        var menuitems=document.getElementById(menuid).getElementsByTagName("td")
        for(var i=0;i<menuitems.length;i++){if(menuitems[i].getAttribute("rel")){var relvalue=menuitems[i].getAttribute("rel")
                document.getElementById(relvalue).firstlink=document.getElementById(relvalue).getElementsByTagName("td")[0];menuitems[i].onmouseover=function(e){var event=typeof e!="undefined"?e:window.event
                    tabdropdown.dropit(this,event,this.getAttribute("rel"))}}
            if(dselected=="auto"&&typeof setalready=="undefined"&&this.isSelected(menuitems[i].href)){menuitems[i].parentNode.className+=" selected default"
                var setalready=true}
            else if(parseInt(dselected)==i)
            menuitems[i].parentNode.className+=" selected default"}}}
function newImage(arg){if(document.images){rslt=new Image();rslt.src=arg;return rslt;}}
function changeImages(){if(document.images&&(preloadFlag==true)){for(var i=0;i<changeImages.arguments.length;i+=2){document[changeImages.arguments[i]].src=changeImages.arguments[i+1];}}}
var preloadFlag=false;function preloadImages(){if(document.images){but_01_over=newImage("images/but_01-over.gif");but_01_but_02_over=newImage("images/but_01-but_02_over.gif");but_02_but_01_over=newImage("images/but_02-but_01_over.gif");but_02_over=newImage("images/but_02-over.gif");but_02_but_03_over=newImage("images/but_02-but_03_over.gif");but_03_but_02_over=newImage("images/but_03-but_02_over.gif");but_03_over=newImage("images/but_03-over.gif");preloadFlag=true;}}
function oeffnefenster(url,toolbar,addressbar,statusbar)
{fenster=window.open(url,"fenster1","status="+statusbar+", toolbar="+toolbar+", location="+addressbar+",scrollbars=yes,resizable=yes,left=210,top=200");fenster.focus();}
function fbs_click(url,title,source,site_url,loc,pid){var tracking_url='/'+loc+'/'+source+'/'+pid+'/';if(source=="Facebook")
    {window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(url)+'&t='+encodeURIComponent(title),'sharer','toolbar=0,status=0,width=626,height=436');}
    else
    {if(source=="Twitter")
        {window.open('http://twitter.com/home?status='+title+' '+url,'sharer','toolbar=0,status=0,width=626,height=436');}}
    dcsMultiTrack('DCS.dcsuri',tracking_url);return false;}
function validate(){if(tfv.exec()){var email=document.getElementById("loginemail").value;var password=document.getElementById("password").value;var rememberme_checked=document.getElementById("rememberme").checked;if(rememberme_checked==false)
        {var rememberme="no";}else{var rememberme="yes";}
        var url="process.php";var params="mode=checkLogin&email="+email+"&password="+password+"&rememberme="+rememberme;var response=AjaxAgent.call(url,"","",params);if(response=="invalid"){document.getElementById("error").style.display="block";document.getElementById("error11").style.display="block";document.getElementById("error22").style.display="block";document.getElementById("error").innerHTML=invalid_login_error;document.getElementById("error11").innerHTML=invalid_email_error;}else if(response=="invalid_password"){document.getElementById("error").style.display="block";document.getElementById("error22").style.display="block";document.getElementById("error11").style.display="none";document.getElementById("error").innerHTML=invalid_login_error;document.getElementById("error22").innerHTML=invalid_password_error;}else if(response=="invalid_email"){document.getElementById("error").style.display="block";document.getElementById("error11").style.display="block";document.getElementById("error22").style.display="none";document.getElementById("error").innerHTML=invalid_login_error;document.getElementById("error11").innerHTML=invalid_email_error;}else if(response=="not_activated"){document.getElementById("error").style.display="block";document.getElementById("error").innerHTML=account_not_activated;}else{window.location.href='/marksheet.php';}}else{return;}}
function validate_signup(){if(tfv_signup.exec()){var email_signup_marksheet=document.getElementById("email_signup_marksheet").value;var password_signup_marksheet=document.getElementById("password_signup_marksheet").value;var newsletter_signup_marksheet_chk=document.getElementById("newsletter_signup_marksheet");if(newsletter_signup_marksheet_chk.checked==true){var newsletter_signup_marksheet="yes";}else{var newsletter_signup_marksheet="no";}
        var url="process.php";var params="mode=signup&email="+email_signup_marksheet+"&password="+password_signup_marksheet+"&newsletter="+newsletter_signup_marksheet;var response=AjaxAgent.call(url,"","",params);if(response=="invalid"){document.getElementById("error_signup").style.display="block";document.getElementById("error_signup").innerHTML="User Already Exist";}else{window.location.href='marksheet.php';}}else{return;}}
function validate_marksheet(){if(tfv_marksheet.exec()){var email_marksheet=document.getElementById("email_marksheet").value;var password_marksheet=document.getElementById("password_marksheet").value;var rememberme_marksheet_checked=document.getElementById("rememberme_marksheet").checked;if(rememberme_marksheet_checked==false)
        {var rememberme_marksheet="no";}else{var rememberme_marksheet="yes";}
        var url="process.php";var params="mode=checkLogin&email="+email_marksheet+"&password="+password_marksheet+"&rememberme="+rememberme_marksheet;var response=AjaxAgent.call(url,"","",params);if(response=="invalid"){document.getElementById("error_user_login").style.display="block";document.getElementById("error_user_login").innerHTML=invalid_login_error;}else if(response=="not_activated"){document.getElementById("error_user_login").style.display="block";document.getElementById("error_user_login").innerHTML=account_not_activated;}else{window.location.href='marksheet.php';}}else{return;}}
function showProductTip(productid){dcsMultiTrack('DCS.dcsuri','/shopproductdetail/'+productid,'WT.ti',productid);var url="process.php";var params="mode=showproductdetailframe&smode=marksheet&product_id="+productid;var showProductDetail=AjaxAgent.call(url,"","",params);return showProductDetail;}
function textbox_close(id)
{document.getElementById(id).style.display='none'
    if(id=='textbox_matter_short')
    {document.getElementById('textbox_matter_detail').style.display='block';}
    else
    {document.getElementById('textbox_matter_short').style.display='block';}}
function newsletter_subs()
{var s_email=document.getElementById("newsletter_email").value;document.getElementById("top_newsletter_email").value=s_email;document.top_newsletter.submit();}
function register(){showPopWin("register.php",350,440,null);overlayclose('subcontent_login');}
function forgot_password(){showPopWin("forgotpassword.php",350,250,null);overlayclose('subcontent_login');}
function show_hide_box(id1,id2)
{hideshow1=document.getElementById(id1);hideshow2=document.getElementById(id2);if(hideshow1.style.display=='none')
    {hideshow1.style.display='';hideshow2.style.display='none';}
    else
    {hideshow1.style.display='none';hideshow2.style.display='';}}
function select_box(id,sel)
{zoom=document.getElementById('zoom_'+id);cb=document.getElementById('cb_'+id);bm=document.getElementById('bm_'+id);if(sel=='y')
    {zoom.style.borderColor='#000000';cb.style.borderColor='#000000';bm.style.borderColor='#000000';bm.style.borderTop='1px solid #000000';}
    else
    {zoom.style.borderColor='#dbdbdb';cb.style.borderColor='#dbdbdb';bm.style.borderColor='#dbdbdb';}}
function switch_marksheet_detail_layer(product_id,price_original,product_name_original,currency){var img=document.getElementById('link_detail_'+product_id);if(img){if(img.innerHTML.search(/Artikel von Merkzettel entfernen/)!=-1){var response=delete_from_cart(product_id);if(response){img.innerHTML='Artikel merken'}}else{var response=add_to_cart(product_id,price_original,product_name_original,currency);if(response){img.innerHTML='Artikel von Merkzettel entfernen';}}}else{}
    return;}
function leftnavi_count_display(sub,id)
{listid=document.getElementById(sub+'_'+id);if(listid.style.display=="none")
    {listid.style.display="block";}
    else
    {listid.style.display="none";}}
function toggle_new(id)
{var img='img_'+id;if(document.getElementById(id).style.display=='block')
    {document.getElementById(id).style.display='none';document.getElementById(img).innerHTML='';}
    else
    {document.getElementById(id).style.display='block';document.getElementById(img).innerHTML='schließen';}}
function toggle_open(id,action)
{var img='img_'+id;if(document.getElementById(id).style.display=='none')
    {if(action=='over')
        {document.getElementById(img).innerHTML='auswählen';}
        else
        {document.getElementById(img).innerHTML='';}}}
function overlay_home_login(curobj,subobjstr){if(document.getElementById){var subobj=document.getElementById(subobjstr)
        subobj.style.display=(subobj.style.display!="block")?"block":"none"
        return false}
    else
    return true}

/*Function for picalike integration*/
function picalike(pid_cid)
{var pic_image=pid_cid;var pic_limit=5;var pic_key='cGljc2ltaWxhcjoxOTQ=';var pic_height='';var pic_width='';var pic_msg='';var pic_anz=0;var pic_currency_format='DE';$(document).ready(function($){$.ajax({dataType:"jsonp",data:'i='+pic_image+'&key='+pic_key+'&limit='+pic_limit+'&currency_format='+pic_currency_format,jsonp:'jsonp_callback',url:'http://api.picalike.com/recommendor.php',success:function(data){if(data.ids.length>0){pic_msg+='<div id="picalike-content"><b class="ahnliche_produkte">ÄHNLICHE PRODUKTE </b><ul id="itemlist">';jQuery.each(data.ids,function(i,xd){ if(xd.error==null){pic_anz=i; if(xd.name.length>40){name=xd.name.substring(0,37)+"..."}else{name=xd.name}if(xd.shipping!="0,00"){shipping="zzgl. "+xd.shipping+"&nbsp;&euro; Versand"}else{shipping="kostenloser Versand"}pic_msg+='<li class="mini"><a href="'+xd.location+'" target="_blank"><img src="'+xd.img+'" '+pic_height+' border=0 class="img"></a><div><a href="'+xd.location+'" target="_blank"><b>'+name+'</b><small>von '+xd.brand+'</small><br><span class="price">'+xd.price+' &euro;</span><br><span class="shipping" style="font-size:8pt;">'+shipping+'</span><span class="at"><br>bei '+xd.shop+'</b></a></span></div></li>'}});pic_msg+='</ul><div style="float:right;position:relative;top:-4px;width:100%;text-align:right;"><a href="http://www.picalike.com" target="_blank" style="margin-left:150px;text-decoration:none;color:#AAABAF;font-size:8pt;font-family:arial;">powered by picalike</a></div></div>';}
                if(pic_anz>=3){document.getElementById('picalike').innerHTML=pic_msg;} else{if(document.getElementById("picalike").innerHTML==""){Div_Top=parseInt(document.getElementById('product_layer_border').style.top);if(isNaN(Div_Top)){document.getElementById('product_layer_border').style.top='115px'}else{document.getElementById('product_layer_border').style.top=Math.floor(Div_Top+60)+'px'}}}}})})}

(function($){$(document).ready(function(){$(".menu_heading").hoverIntent({over:menuShow,timeout:500,out:menuHide});});})(jQuery);function menuShow()
{var FirstDiv_hover={'position':'absolute','left':'190px','margin':'25px 0 0 0','display':'block'}
    var SecondDiv_hover={'position':'absolute','left':'190px','margin':'2px 0 0 0','display':'block'}
    var first_row_hover={'padding':'1px 2px 24px 2px'}
    var second_row_hover={'padding':'1px 2px 1px 2px'}
    var FirstDiv_out={'position':'','left':'','margin':'','display':'none'}
    var first_row_out={'padding':''}

    $("#"+$(this).find('a').attr("id")).css("border-color","#C5C5C5");
    $("#"+$(this).find('a').attr("id")).css("background","#F5F5F5");
    
    $(".menu_heading").find('div.header_main_navi_navigation').hide();$(".menu_heading").find('div.header_main_navi_navigation').removeClass("position_topmenu");$(".menu_heading").find('div.header_main_navi_navigation').css(FirstDiv_out);$(".menu_heading").find('a.menu_heading_link').removeClass("menu_over_effect");$(".menu_heading").find('a.menu_heading_link').removeClass("menu_over_sale");if($(".menu_heading").parent('ul').hasClass('menu_ul_first_row')){$(".menu_heading").find('a.menu_heading_link').css(first_row_out);}
    if($(".menu_heading").parent('ul').hasClass('menu_ul_second_row')){$(".menu_heading").find('a.menu_heading_link').css(first_row_out);}
    $(this).find('div.header_main_navi_navigation').show().delay('200');$(this).find('div.header_main_navi_navigation').addClass("position_topmenu");if($(this).find('a.menu_heading_link').text().toUpperCase()=="SALE"){$(this).find('a.menu_heading_link').addClass("menu_over_sale");}else{$(this).find('a.menu_heading_link').addClass("menu_over_effect");}if($(this).parent('ul').hasClass('menu_ul_first_row'))
    {$(this).find('a.menu_heading_link').css(first_row_hover);$(this).find('div.header_main_navi_navigation').css(FirstDiv_hover);}
    if($(this).parent('ul').hasClass('menu_ul_second_row'))
    {$(this).find('a.menu_heading_link').css(second_row_hover);$(this).find('div.header_main_navi_navigation').css(SecondDiv_hover);}}
function menuHide()
{var FirstDiv_out={'position':'','left':'','margin':'','display':'none'}
    var first_row_out={'padding':''}
    $("#"+$(this).find('a').attr("id")).css("border-color","#FFF");
    $("#"+$(this).find('a').attr("id")).css("background","none");
    $(this).find('div.header_main_navi_navigation').hide();$(this).find('div.header_main_navi_navigation').removeClass("position_topmenu");$(this).find('div.header_main_navi_navigation').css(FirstDiv_out);$(this).find('a.menu_heading_link').removeClass("menu_over_effect");$(this).find('a.menu_heading_link').removeClass("menu_over_sale");if($(this).parent('ul').hasClass('menu_ul_first_row')){$(this).find('a.menu_heading_link').css(first_row_out);}
    if($(this).parent('ul').hasClass('menu_ul_second_row')){$(this).find('a.menu_heading_link').css(first_row_out);}}
function toggleProduct(id)
{var img='img_'+id;if(document.getElementById(id).style.display=='block')
    {document.getElementById(id).style.display='none';document.getElementById(img).src='images/left_navigation/filter_down.gif';}
    else
    {document.getElementById(id).style.display='block';document.getElementById(img).src='images/left_navigation/filter_up.gif';}}
function getLoadFilterAjax(siteurl,cat)
{
    str = '<div align="center" style="float: left; height: 200px; width: 163px;"><br><br><img src="js/loading.gif"><br><br> Filter werden geladen...</div>';
    document.getElementById('other_category_filterNew').innerHTML=str;
    var url = siteurl+"process.php";
    var params = "mode=getLoadFilterAjax&cat="+cat;
    AjaxAgent.call(url,"","getLoadFilterAjaxResponse",params);
}
function getLoadFilterAjaxResponse(output)
{ document.getElementById('other_category_filterNew').innerHTML=output;var atags = document.getElementsByTagName("A");var browserVer=parseInt(navigator.appVersion); var browserName=navigator.appName; var ieversion=9;if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ ieversion=new Number(RegExp.$1)}for( var x=0; x < atags.length; x++ ){if(atags[x].target=="_blank"){}else{if (browserName=="Microsoft Internet Explorer" && ieversion <8){if(atags[x].innerHTML=="mehr" || atags[x].innerHTML=="schliessen" || atags[x].innerHTML=="Senden"  || atags[x].getAttribute("className")=="page_active_up_arrow" || atags[x].getAttribute("id")=="newsletter_signup_link" || atags[x].getAttribute("className")=="Headline_delcost_underline" || atags[x].getAttribute("className")=="llink_grey2" || atags[x].getAttribute("id")=="ProductDetailPageSubmitLink" || atags[x].getAttribute("className")=="schiessen"){}else{if(document.getElementById('ajaxOnConst').value=="on"){if(atags[x].getAttribute("className")=="page_active_right_arrow" || atags[x].getAttribute("className")=="page_active_left_arrow"){}else{atags[x].onclick = function(){ap_showWaitMessage('waitDiv',1);};}}else{atags[x].onclick = function(){ap_showWaitMessage('waitDiv',1);};}}}else{if(atags[x].innerHTML=="mehr" || atags[x].innerHTML=="schliessen" || atags[x].innerHTML=="Senden"  || atags[x].getAttribute("class")=="page_active_up_arrow" || atags[x].getAttribute("id")=="newsletter_signup_link" || atags[x].getAttribute("class")=="Headline_delcost_underline" || atags[x].getAttribute("class")=="llink_grey2" || atags[x].getAttribute("id")=="ProductDetailPageSubmitLink"|| atags[x].getAttribute("class")=="schiessen"){}else{if(document.getElementById('ajaxOnConst').value=="on"){if(atags[x].getAttribute("class")=="page_active_right_arrow" || atags[x].getAttribute("class")=="page_active_left_arrow"){}else{atags[x].onclick = function(){ap_showWaitMessage('waitDiv',1);};}}else{atags[x].onclick = function(){ap_showWaitMessage('waitDiv',1);};}}}}}}
