

var ws_pwsent='A megadott e-mail címre elküldtem az e-mail címhez tartozó jelszót';
var ws_logi1='Bejelentkezés';
var ws_logi2='E-mail';
var ws_logi3='Jelszó';
var ws_logi4='BEJELENTKEZÉS';
var ws_logi5='Elfelejtett jelszó';
var ws_logi6='Jelszó küldése e-mailben';
var vnobotform_chk='Adatok ellenőrzése';
var vnobotform_m1='Az oldal töltődik';
var vnobotform_m2='Az ellezőrzés nem talált hibát. Kérem várjon, míg az oldal betöltődik';
var vnobotform_m3='&lt;&lt;&lt; vissza a javításhoz';
var ws_regsuccess='Gratulálok a jelentkezéshez!\n\nNevét, e-mail címét elmentettem, részletek hamarosan e-mailben.';
var ws_unscr='Az e-mail címet töröltem a listáról';
var ws_imw=400;
var ws_imh=400;
var ws_imh2=400;

/**
 * termékek
 */
function termekgombok() {
    $('.ws_thim').each(function() {
        $(this).click(function() {
            show_imagegallery()
        }).hover(function() {
            $(this).css({border:'2px solid #CCC'})
            xrc=$(this).attr('src').replace('/35x35/','/250x250/')
            $('#ws_tmain').attr('src',xrc)
        },function() {
            $(this).css({border:'2px solid #FFF'})
        })
    })
}

function init_imageover() {
    $("img[rel=tooltip]").hover(function(e) {        
        src=$(this).attr("src").split('/')        
        if ($(this).attr("data")) {            
            ws_imh2=400+35+12;
            data=$(this).attr("data").split(' ')
            m='<br />'; 
            for (var i in data) {
                m+='<img class="c" src="/webimages/thumbs/35x35/'+data[i]+'"> '
            }           
        } else {            
            ws_imh2=400;
            m='';
        }
        f=src[4]
        pos_jimover(e.pageX,e.pageY)
        pos_addimg(f,m)         
    },function() {
        //$('#jquery-imageover').fadeOut('fast')
        $('#jquery-imageover').hide()
    }).mousemove(function(e) { 
        pos_jimover(e.pageX,e.pageY)       
    })
}
      
    /*
 * jQuery Extension
 * http://www.honlapteszt.hu/
 *
 * Copyright (c) 2009 Verdes János
 *
 */
(function($) {
  var cache = [];
  // Arguments are image paths relative to the current page.
  $.preLoadImages = function() {
    var args_len = arguments.length;
    for (var i = args_len; i--;) {
      var cacheImage = document.createElement('img');
      cacheImage.src = arguments[i];
      cache.push(cacheImage);
    }
  }
})(jQuery)
function populateElement(selector, defvalue) {
    $(selector).each(function() {
        if($.trim(this.value) == "") {
            this.value = defvalue;
        }
    });
    $(selector).focus(function() {
        if(this.value == defvalue) {
            this.value = "";
        }
    });
    $(selector).blur(function() {
        if($.trim(this.value) == "") {
            this.value = defvalue;
        }
    });
}
/*
 * Document.Ready | Form CAPTCHA
 */
var vnobotform_load=false
var vnobotformpass=''
function formcaptcha() {                               
    $("form.nobot").submit(function() {                   
            mi2=new Array("ad","ch","ec")
            var mi=88;var dc="hlia";var mas="";mas=parseInt(dc+mi+dc);mas+="";mas=mas.substr(1,1);
            mas=String.fromCharCode(mas.charCodeAt(0)+10)        
            faction=self.location.href            
            faction=faction.split('#')
            faction=faction[0]
            if (faction.charAt(faction.length-1)!='/') {
                faction+='/'
            }
            if (typeof($(this).attr('antiboturl'))!='undefined') {
                faction=$(this).attr('antiboturl')+'/'
            } 
            faction+='chec'+mas             
            if (vnobotformpass==$(this).attr("id")) {                
                $("#jquery-overdiv-nobotform-load p.fc").html(vnobotform_m1)
                $("#jquery-overdiv-nobotform-load div.lbr").hide()
                $("#jquery-overdiv-nobotform-load p.res").html(vnobotform_m2)
                $(this).attr("action",faction.replace(/\/check$/,"/apply"))                
                return true
            } else {                
                $("#jquery-overdiv-nobotform-load p.res").html('')
                $("#jquery-overdiv-nobotform-load p.res2").html('')
                $("#jquery-overdiv-nobotform-load div.lbr").show()
                nobotform_on()
                $.post(faction,$(this).serialize(),function(data) {
                    data=data.split('[rn]');
                    if (data[0]=='[0]') {
                        $("#jquery-overdiv-nobotform-load div.lbr").hide()
                        $("#jquery-overdiv-nobotform-load").css("height","280px")
                        $("#jquery-overdiv-nobotform-load p.res").html(data[1])
                        $("#jquery-overdiv-nobotform-load p.res2").html('<button onclick="nobotform_off()">'+vnobotform_m3+'</button>')
                    } else {
                        vnobotformpass=data[0]
                        $("form#"+vnobotformpass).submit()
                    }                    
                }) 
                return false;
            }            
    })
}
function kosarbagombok() {
    $("div[unid]").unbind('click').click(function() {
        unid=$(this).attr("unid")
        tmp=unid.substr(0,2)
        if (tmp=='A_') {
            add_star(unid.substr(2))
        } else if (tmp=='B_') {
            add_wish(unid.substr(2))            
        } else if (tmp=='C_') {
            tmp=unid.split('_')
            if (tmp.length==4) {
                kosarba(tmp[1],$("#item_"+tmp[1]).val(),tmp[2],false)
            } else {
                add_cart2(tmp[1],tmp[2])
            }
        }
    })
    $("div.da").unbind('mouseenter').unbind('mouseleave').hover(function() {
        $(this).addClass("daho")
    },function() {
        $(this).removeClass("daho")
    })
    $("div.db").unbind('mouseenter').unbind('mouseleave').hover(function() {        
        $(this).addClass("dbho")
    },function() {
        $(this).removeClass("dbho")
    })
    $("div.dc").unbind('mouseenter').unbind('mouseleave').hover(function() {
        $(this).addClass("dcho")
    },function() {
        $(this).removeClass("dcho")
    })
    $("div.dbx").unbind('mouseenter').unbind('mouseleave').hover(function() {        
        $(this).addClass("dbxho")
    },function() {
        $(this).removeClass("dbxho")
    })
    $("div.dcx").unbind('mouseenter').unbind('mouseleave').hover(function() {
        $(this).addClass("dcxho")
    },function() {
        $(this).removeClass("dcxho")
    })
}

function div_hover() {
    
    $("div[rel=hb]").each(function() {
        $(this).hover(function() {
            cl=$(this).attr('id')            
            $(this).addClass(cl+'_hover')
        },function() {
            cl=$(this).attr('id')            
            $(this).removeClass(cl+'_hover')
        })
    })
}

$(document).ready(function() {
    formcaptcha()
    kosarbagombok()
    div_hover()
    termekgombok()
})
function nobotform_on() {
    if (vnobotform_load) {
        var arrPageSizes = ___getPageSize();        
        var arrPageScroll = ___getPageScroll();
        $('#jquery-overdiv-nobotform').show().fadeTo("fast",0.33);        
        $('#jquery-overdiv-nobotform-load').css({
                    top:	            arrPageScroll[1]+75,
        		    left:	            Math.round((arrPageSizes[2]-450)/2)
    			}).show();    	
    } else {
        vnobotform_load=true
        var arrPageSizes = ___getPageSize();        
        var arrPageScroll = ___getPageScroll(); 
        $('body').append('<div id="jquery-overdiv-nobotform"></div><div id="jquery-overdiv-nobotform-load"><p class="fc">'+vnobotform_chk+'...</p><div class="lbr"><img src="/images/core/loading-bar.gif?'+Math.round(Math.random() * 999999999)+'" /></div><p class="res">&nbsp;</p><p class="res2"></p></div>');        
        $('#jquery-overdiv-nobotform').css({
                    position:           'absolute',
                    top:                '0px',
                    left:               '0px',
                    zIndex:             '9988',
    				backgroundColor:	'#FFF',
    				opacity:			0,
    				width:				arrPageSizes[0],
    				height:				arrPageSizes[1]
    			}).fadeTo("fast",0.33);
    	$('#jquery-overdiv-nobotform-load').css({
                    position:           'absolute',
                    top:	            arrPageScroll[1]+75,
        		    left:	            Math.round((arrPageSizes[2]-450)/2),
                    zIndex:             '9999',
                    width:              '450px',
                    height:             '150px'
    			}).show();
    }    
}
function nobotform_off() {
    $('#jquery-overdiv-nobotform').fadeTo("fast",0).hide();
    $('#jquery-overdiv-nobotform-load').hide();
}
         /**
		 * getPageSize() by quirksmode.com
		 *
		 * @return Array Return an array with page width, height and window width, height
		 */
		function ___getPageSize() {
			var xScroll, yScroll;
			if (window.innerHeight && window.scrollMaxY) {	
				xScroll = window.innerWidth + window.scrollMaxX;
				yScroll = window.innerHeight + window.scrollMaxY;
			} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
				xScroll = document.body.scrollWidth;
				yScroll = document.body.scrollHeight;
			} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
				xScroll = document.body.offsetWidth;
				yScroll = document.body.offsetHeight;
			}
			var windowWidth, windowHeight;
			if (self.innerHeight) {	// all except Explorer
				if(document.documentElement.clientWidth){
					windowWidth = document.documentElement.clientWidth; 
				} else {
					windowWidth = self.innerWidth;
				}
				windowHeight = self.innerHeight;
			} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
				windowWidth = document.documentElement.clientWidth;
				windowHeight = document.documentElement.clientHeight;
			} else if (document.body) { // other Explorers
				windowWidth = document.body.clientWidth;
				windowHeight = document.body.clientHeight;
			}	
			// for small pages with total height less then height of the viewport
			if(yScroll < windowHeight){
				pageHeight = windowHeight;
			} else { 
				pageHeight = yScroll;
			}
			// for small pages with total width less then width of the viewport
			if(xScroll < windowWidth){	
				pageWidth = xScroll;		
			} else {
				pageWidth = windowWidth;
			}
			arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight);
			return arrayPageSize;
		};
		 /**
		 * getPageScroll() by quirksmode.com
		 *
		 * @return Array Return an array with x,y page scroll values.
		 */
		function ___getPageScroll() {
			var xScroll, yScroll;
			if (self.pageYOffset) {
				yScroll = self.pageYOffset;
				xScroll = self.pageXOffset;
			} else if (document.documentElement && document.documentElement.scrollTop) {	 // Explorer 6 Strict
				yScroll = document.documentElement.scrollTop;
				xScroll = document.documentElement.scrollLeft;
			} else if (document.body) {// all other Explorers
				yScroll = document.body.scrollTop;
				xScroll = document.body.scrollLeft;	
			}
			arrayPageScroll = new Array(xScroll,yScroll);
			return arrayPageScroll;
		};
/**
* getPosition() by quirksmode.com
*
* @return Array Return an array with x,y cursor coords values.
*/		
function ___getPosition(e) {
    e = e || window.event;
    var cursor = {x:0, y:0};
    if (e.pageX || e.pageY) {
        cursor.x = e.pageX;
        cursor.y = e.pageY;
    } 
    else {
        var de = document.documentElement;
        var b = document.body;
        cursor.x = e.clientX + 
            (de.scrollLeft || b.scrollLeft) - (de.clientLeft || 0);
        cursor.y = e.clientY + 
            (de.scrollTop || b.scrollTop) - (de.clientTop || 0);
    }
    return cursor;
}
/**
 * addOverlay() function
 */
var addOverlay_bool=false
function addOverlay() {
    if (addOverlay_bool) {
        $('#jquery-overdiv').hide().fadeIn();
    } else {
        addOverlay_bool=true
        $('body').append('<div id="jquery-overdiv"></div>');
        var arrPageSizes = ___getPageSize();
        $('#jquery-overdiv').css({
                    position:           'absolute',
                    top:                '0px',
                    left:               '0px',
                    zIndex:             '90',
                    width:              '100%',
                    height:             '500px',
    				backgroundColor:	'#000',
    				opacity:			0.8,
    				width:				arrPageSizes[0],
    				height:				arrPageSizes[1]
    			}).hide().fadeIn();
    }
}
function closeOverlay() {
    $('#jquery-overdiv').fadeOut();
}
/**
 * POPunder message div
 */		
function addMessage(text,xwidth,xheight) {
    text='<div style="width:'+xwidth+'px;height:'+xheight+'px;padding:20px 20px 20px 20px">'+text+'</div>'
    if (!addOverlay_bool) {
        $('body').append('<div id="jquery-overdiv-msg"></div>');        
        $('#jquery-overdiv-msg').css({
                    position:           'absolute',
                    top:                '-1000px',
                    left:               '-1000px',
                    zIndex:             '120',
                    width:              (xwidth+40)+'px',
                    height:             (xheight+40)+'px',
                    border:             '2px solid #CCC',
    				backgroundColor:	'#FFF'
    			}).html('<div onclick="removeMessage()" class="ws_removemessage"></div>'+text).hide();
    } else {
        $('#jquery-overdiv-msg').html('<div onclick="removeMessage()" class="ws_removemessage"></div>'+text)
    }
    addOverlay()
    var arrPageSizes = ___getPageSize();
    var arrPageScroll = ___getPageScroll(); 
    $('#jquery-overdiv-msg').css({
            top:	arrPageScroll[1]+Math.round((arrPageSizes[3]-xheight)/2),
    		left:	Math.round((arrPageSizes[2]-xwidth)/2)
        }).hide().show("slow");    
}
function removeMessage() {
    $('#jquery-overdiv-msg').hide("slow");
    closeOverlay()
}	
/**
 * TR pointer
 */     
function tr_pointer() {
    $("tr[id=pointer]").hover(function() {
        $(this).find('td').css("backgroundColor","#FFFFCC")
    },function() {
        $(this).find('td').css("backgroundColor","#FFFFFF")
    })
}
/**
 * webshop filter
 */
function ws_fil() {
    loading_on()
    a=$("#ws_src_q").val()
    a2=$("#ws_src_q2").val()
    b=$("#ws_src_mi").val()
    c=$("#ws_src_ma").val()
    d=$("#ws_flt_katid").val()
    if (typeof(a)=='undefined') {
        a=''
    }
    if (a=='') {
        if (typeof(a2)!='undefined') {
            a=a2
        }
    }
    if (typeof(b)=='undefined') {
        b='0'
    }
    if (typeof(c)=='undefined') {
        c='0'
    }
    if (typeof(d)=='undefined') {
        d='0'
    }
    query =a+"-"
    query+=b+"-"
    query+=c+"-"
    query+=d+"/"
    tmp=new Array    
    ws_filters=$("#ws_filter_form input:checkbox:checked").each(function () {
        vl=$(this).val().split('/')                
        if (typeof(tmp[vl[0]])=='undefined') {
            tmp[vl[0]]=vl[1]
        } else {
            tmp[vl[0]]+=';'+vl[1]
        }
    })
    for (var k in tmp) {
        query+=k+"_"+tmp[k]+"/"
    }
    var currentTime = new Date()
    currentTime=currentTime.getTime()
    $.post("/ajax.php",{base: query,random1:Math.round(Math.random() * 999999999),time:currentTime},function(data) {
        data=data.split("[/$/]")
        $("#ws_main_div").html(data[0])
        $("#ws_related").html(data[1])
        init_imageover()
        kosarbagombok()
        loading_off()
    })    
}
function ws_fil2(vector) {
    checked=$("#ws_cb"+vector).attr("checked")
    if (checked) {
        $("#ws_cb"+vector).removeAttr("checked")
    } else {
        $("#ws_cb"+vector).attr("checked","true")
    }
    ws_fil()        
    return false
}
/**
 * webshop top search
 */
function ws_do_src() {
    txa=$("#ws_src_q").val()
    $("#ws_flt_q").val(txa)
    txa=$("#ws_src_mi").val()
    $("#ws_flt_mi").val(txa)
    txa=$("#ws_src_ma").val()
    $("#ws_flt_ma").val(txa)
    $("#ws_filter_form").attr("action","/post")
    $("#ws_filter_form").submit()
}
var ws_cbenable=true
$(document).ready(function() {
    $("form[id=ws_src_form]").submit(function() {        
        ws_do_src()
        return false
    })    
    szminit()
})
function szminit() {    
    $("div[id=fbg] dl :checkbox").click(function() {
        ws_cbenable=false
        ws_fil()
    })
    $("div[id=fbg] dl").hover(function() {
        $(this).css("text-decoration","underline")
    },function() {
        $(this).css("text-decoration","none")
    }).click(function() {        
        if (ws_cbenable) {
            if ($(this).find(":checkbox").attr('checked')==false) {
                $(this).find(":checkbox").attr('checked',true)
            } else {
                $(this).find(":checkbox").attr('checked',false)
            }
            ws_fil()
        } else {
            ws_cbenable=true
        }
    })
    $("div[id=fbg] p[class=mt] a").click(function() {  
        loading_on();
        var currentTime = new Date()
        currentTime=currentTime.getTime()
        $.post("/ajax.php",{szmenu: $(this).parent().attr("id"),random1:Math.round(Math.random() * 999999999),time:currentTime},function(data) {
            data=data.split('[/$/]')            
            $("p#"+data[0]).html(data[1])
            $("div[id=fbg] dl :checkbox").unbind('click')
            $("div[id=fbg] dl").unbind('hover').unbind('click')
            $("div[id=fbg] p[class=mt] a").unbind('click') 
            szminit()           
            loading_off()
        })
    })
}
function ws_compare() {
    target=''
    $("input[name=cmpr\\\[\\\]]:checked").each(function() {
        target+=$(this).val()+'-'
    })
    if (target!='') {
        window.open('/compare/'+target.substr(0,target.length-1)+'.html')
    }
}
function kosarba(unid,mennyiseg,fizar,pagereload) {
        loading_on()
        $.post("/ajax.php",{"kosar" : unid ,"item" : mennyiseg ,"fizar" : fizar},function(data) {
            if (pagereload) {
                top.location.reload()
            } else {
                top.location.href='/cart/'
            }
        })        
}
function add_cart(unid,fizar) {
    if (arguments.length==2) {
        kosarba(unid,document.getElementById('item_'+unid).value,fizar,false)
    } else {
        kosarba(unid,document.getElementById('item_'+unid).value,fizar,true)
    }
}
function add_cart2(unid,fizar) {    
    kosarba(unid,1,fizar,false)
}
var _openeddiv=0
var _opentimer=false
function dd_i(id) {
    if (_opentimer!=false) {
        clearTimeout(_opentimer)
    }
    if (_openeddiv!=0) {
        document.getElementById("dd_"+_openeddiv).style.display='none'
    }
    _openeddiv=id
    document.getElementById("dd_"+_openeddiv).style.display='block'
}
function dd_o() {    
    _opentimer=setTimeout('dd_o2()',200)
}
function dd_o2() {    
    document.getElementById("dd_"+_openeddiv).style.display='none'
    _openeddiv=0
}
/**
* Image mouseover 
*/
var jarrPageSizes  = '';
$(function() {
    jarrPageSizes  = ___getPageSize();
    $('body').append('<div id="jquery-imageover"></div>');    
    $('#jquery-imageover').css({
                position:           'absolute',
                top:                '-200px',
                left:               '-200px',
                zIndex:             '11',
				backgroundColor:	'#FFF',
				border:             '1px solid #999',
				width:              '10px',
				height:             '10px'
			}).hide();
    init_imageover()
})

function pos_jimover(cursorX,cursorY) {
    var jarrPageScroll = ___getPageScroll();
    jtop=cursorY+35-Math.round(ws_imh2/2)
    jleft=cursorX+35
    if (jtop+ws_imh2>jarrPageScroll[1]+jarrPageSizes[3]) {
        jtop-=Math.round(ws_imh2/2)
        jtop-=35
    }
    if (jleft+ws_imw>jarrPageScroll[0]+jarrPageSizes[2]) {
        jleft-=ws_imw
        jleft-=35
        jleft-=35
    }
    if (jtop<jarrPageScroll[1]) {
        jtop=jarrPageScroll[1]
    }
    $('#jquery-imageover').css({
                    top:                jtop,
                    left:               jleft,
    				width:              ws_imw,
    				height:             ws_imh2
    			}).fadeIn();
}
function pos_addimg(f,m) {
    $('#jquery-imageover').html('<img src="/webimages/thumbs/'+ws_imw+'x'+ws_imh+'/'+f+'" width="'+ws_imw+'" height="'+ws_imh+'">'+m).mouseover(function() {$(this).hide()})
}
/**
 * sorrendezés ajax
 */
function ajax_setorder(order) {
    var currentTime = new Date()
    currentTime=currentTime.getTime()
    $.post("/ajax.php",{setorder: order,random1:Math.round(Math.random() * 999999999),time:currentTime},function(data) {
        ws_fil()
    })
}
/**
 * csillagozás, kívánság lista ajax
 */
function add_star(order) {
    loading_on()
    var currentTime = new Date()
    currentTime=currentTime.getTime() 
    $.post("/ajax.php",{add_star: order,random1:Math.round(Math.random() * 999999999),time:currentTime},function(data) {
        data=data.split('[rn]')
        classname=$("a[unid=_"+data[0]+"]").attr('class')                      
        if (data[2]!='m') {            
            $("div[unid=A_"+data[0]+"]").removeClass('db').addClass('dbx')            
            if (classname=='defwish') {
                $("a[unid=_"+data[0]+"]").attr('class','defstarwish')
            } else {
                $("a[unid=_"+data[0]+"]").attr('class','defstar')
            }            
        } else {
            $("div[unid=A_"+data[0]+"]").removeClass('dbx').addClass('db')            
            if (classname=='defstarwish') {
                $("a[unid=_"+data[0]+"]").attr('class','defwish')
            } else {
                $("a[unid=_"+data[0]+"]").attr('class','defnorm')
            }
        }  
        kosarbagombok()
        //init_imageover()     
        $("div#ws_star_list").html(data[3])
        if (data[4]!='') {
            $("div#ws_related").html(data[4])
        }        
        loading_off()               
    })
}
function add_wish(order) {
    loading_on()
    var currentTime = new Date()
    currentTime=currentTime.getTime()
    $.post("/ajax.php",{add_wish: order,random1:Math.round(Math.random() * 999999999),time:currentTime},function(data) {
        data=data.split('[rn]')
        classname=$("a[unid=_"+data[0]+"]").attr('class')                
        if (data[2]!='m') {            
            $("div[unid=B_"+data[0]+"]").removeClass('dc').addClass('dcx')
            if (classname=='defstar') {
                $("a[unid=_"+data[0]+"]").attr('class','defstarwish')
            } else {
                $("a[unid=_"+data[0]+"]").attr('class','defwish')
            }            
        } else {
            $("div[unid=B_"+data[0]+"]").removeClass('dcx').addClass('dc')
            if (classname=='defstarwish') {
                $("a[unid=_"+data[0]+"]").attr('class','defstar')
            } else {
                $("a[unid=_"+data[0]+"]").attr('class','defnorm')
            }
        }
        kosarbagombok()
        //init_imageover()
        $("div#ws_wish_list").html(data[3])
        loading_off()               
    })
}
/**
 * loading
 */
var vraddOverlay_load=false
pic1= new Image(220,19); 
pic1.src='/images/core/loading-bar.gif';
function loading_on() {
    if (vraddOverlay_load) {
        var arrPageSizes = ___getPageSize();        
        var arrPageScroll = ___getPageScroll();
        $('#jquery-overdiv-load').show().fadeTo("fast",0.33);        
        $('#jquery-overdiv-msg-load').css({
                    top:	            arrPageScroll[1]+Math.round((arrPageSizes[3]-19)/2),
        		    left:	            Math.round((arrPageSizes[2]-220)/2)
    			}).show();
    } else {
        vraddOverlay_load=true
        var arrPageSizes = ___getPageSize();        
        var arrPageScroll = ___getPageScroll();                     
        $('body').append('<div id="jquery-overdiv-load"></div><div id="jquery-overdiv-msg-load"><img src="/images/core/loading-bar.gif" width="220" height="19"></div>');        
        $('#jquery-overdiv-load').css({
                    position:           'absolute',
                    top:                '0px',
                    left:               '0px',
                    zIndex:             '9988',
    				backgroundColor:	'#FFF',
    				opacity:			0,
    				width:				arrPageSizes[0],
    				height:				arrPageSizes[1]
    			}).fadeTo("fast",0.33);
    	$('#jquery-overdiv-msg-load').css({
                    position:           'absolute',
                    top:	            arrPageScroll[1]+Math.round((arrPageSizes[3]-19)/2),
        		    left:	            Math.round((arrPageSizes[2]-220)/2),
                    zIndex:             '9999',
                    width:              '220px',
                    height:             '19px'
    			}).show();
    }
}
function loading_off() {
    $('#jquery-overdiv-load').fadeTo("fast",0).hide();
    $('#jquery-overdiv-msg-load').hide();
}
function mw(cimzett,hoszt) {
var t1='a';
var t2='hr';
var t3='ef';
var t4='ma';
var t5='ilto';
var i=Math.round(193/3);
var s=String
var v1=eval('s.fromCh'+t1+'rCode(i)')
document.write('<'+t1+' '+t2 +t3+'="'+t4+t5+':'+cimzett+v1+hoszt +'">'+cimzett+v1+hoszt+'<'+'/' +t1+'>')
}
/**
 * login
 */
function login() {    
    addMessage('<form id="doform_login" action="http://nobot/" class="nobot" method="post" antiboturl="/login">'
    +'<input type="hidden" name="doformid" value="doform_login" />'
    +'<input type="hidden" name="referer" value="'+self.location.href+'" />'
    +'<b style="font-size:22px">'+ws_logi1+'</b><br /><br /><table class="p10" width="100%"><tr>'
    +'<td width="120">'+ws_logi2+':</td><td><input name="seows_email" style="width:200px" /></td></tr><tr>'
    +'<td>'+ws_logi3+'</td><td><input type="password" name="seows_password" style="width:200px" /></td></tr><tr><td>&nbsp;</td>'
    +'<td><input type="submit" value="'+ws_logi4+'..." class="loginbutton" /></td></tr></table></form>'
    +'<p>&nbsp;</p><form id="doform2_login" class="nobot" action="http://nobot/" method="post" antiboturl="/my-account/lost-password"><b style="font-size:22px">'+ws_logi5+'</b><br /><br /><table class="p10" width="100%"><tr><td width="120">'+ws_logi2+':</td><td><input name="email" style="width:200px" /></td></tr><tr><td>&nbsp;</td><td><input type="submit" value="'+ws_logi6+'..." class="loginbutton" /></td></tr></table><input type="hidden" name="doformid" value="doform2_login" /></form></td><td></div>'
    ,493,370)
    formcaptcha()
}
$(function() {
    if (self.location.hash.indexOf("password-email-sent")!=-1) {
            alert(ws_pwsent)
    }
})

/**
 * kosár megrendelés függő
 */

function init_kosarmt() {
    $(".mf_termek").change(function() {
        loading_on()
        var currentTime = new Date()
        currentTime=currentTime.getTime()
        query=$(this).find(":selected").val()               
        $.post("/ajax.php",{mt_termek: query,random1:Math.round(Math.random() * 999999999),time:currentTime},function(data) {                        
            top.location.reload()
        })       
    })
}


