function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  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 MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function initArray() {
 for(i=0;i<initArray.arguments.length; i++)
  this[i] = initArray.arguments[i];
}

function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_popupMsg(msg) { //v1.0
  alert(msg);
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function opnkorisnapravila() { //v.2.0
var contentWidth="470";
var contentHeight="400";
var posX = ((screen.width-contentWidth)/2-6);
var posY = ((screen.height-contentHeight)/2-15);
var urllocation = "http://www.hrstyle.com/sites/popups/frameset_index_02.htm";
window.open(urllocation,"korisnapravilawindow",'"resizable=yes,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,left='+posX +',top='+ posY +',width='+ contentWidth+',height='+contentHeight+'"'); 
}

function opnposlovnapravila() { //v.2.0
var contentWidth="470";
var contentHeight="400";
var posX = ((screen.width-contentWidth)/2-6);
var posY = ((screen.height-contentHeight)/2-15);
var urllocation = "http://www.hrstyle.com/sites/popups/frameset_index_01.htm";
window.open(urllocation,"poslovnapravilawindow",'"resizable=yes,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,left='+posX +',top='+ posY +',width='+ contentWidth+',height='+contentHeight+'"'); 
}

function opnimpressum() { //v.2.0
var contentWidth="470";
var contentHeight="400";
var posX = ((screen.width-contentWidth)/2-6);
var posY = ((screen.height-contentHeight)/2-15);
var urllocation = "/sites/popups/frameset_index_04.htm";
window.open(urllocation,"impressum",'"resizable=yes,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,left='+posX +',top='+ posY +',width='+ contentWidth+',height='+contentHeight+'"'); 
}

function opnpomoc() { //v.2.0
var contentWidth="470";
var contentHeight="400";
var posX = ((screen.width-contentWidth)/2-6);
var posY = ((screen.height-contentHeight)/2-15);
var urllocation = "/sites/popups/frameset_index_05.htm";
window.open(urllocation,"pomocwindow",'"resizable=yes,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,left='+posX +',top='+ posY +',width='+ contentWidth+',height='+contentHeight+'"'); 
}

function opnsystem() { //v.2.0
var contentWidth="470";
var contentHeight="400";
var posX = ((screen.width-contentWidth)/2-6);
var posY = ((screen.height-contentHeight)/2-15);
var urllocation = "/sites/popups/frameset_index_23.htm";
window.open(urllocation,"systemvoraussetzungenwindow",'"resizable=yes,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,left='+posX +',top='+ posY +',width='+ contentWidth+',height='+contentHeight+'"'); 
}

function opnprikazivanje() { //v.2.0
var contentWidth="470";
var contentHeight="400";
var posX = ((screen.width-contentWidth)/2-6);
var posY = ((screen.height-contentHeight)/2-15);
var urllocation = "/sites/popups/frameset_index_22.htm";
window.open(urllocation,"prikazivanjewindow",'"resizable=yes,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,left='+posX +',top='+ posY +',width='+ contentWidth+',height='+contentHeight+'"'); 
}

function flashverzija() { //v.2.0
var contentWidth="470";
var contentHeight="400";
var posX = ((screen.width-contentWidth)/2-6);
var posY = ((screen.height-contentHeight)/2-15);
var urllocation = "/sites/popups/frameset_index_16.htm";
window.open(urllocation,"flashverzija",'"resizable=yes,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,left='+posX +',top='+ posY +',width='+ contentWidth+',height='+contentHeight+'"'); 
}

function flashversion() { //v.2.0
var contentWidth="470";
var contentHeight="400";
var posX = ((screen.width-contentWidth)/2-6);
var posY = ((screen.height-contentHeight)/2-15);
var urllocation = "/sites/popups/frameset_index_21.htm";
window.open(urllocation,"flashversion",'"resizable=yes,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,left='+posX +',top='+ posY +',width='+ contentWidth+',height='+contentHeight+'"'); 
}

function opnprsutvinozapir() { //v.2.0
var contentWidth="470";
var contentHeight="400";
var posX = ((screen.width-contentWidth)/2-6);
var posY = ((screen.height-contentHeight)/2-15);
var urllocation = "/sites/popups/frameset_index_07.htm";
window.open(urllocation,"prsutvinozapirwindow",'"resizable=yes,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,left='+posX +',top='+ posY +',width='+ contentWidth+',height='+contentHeight+'"'); 
}

function opnprsutvinozapirde() { //v.2.0
var contentWidth="470";
var contentHeight="400";
var posX = ((screen.width-contentWidth)/2-6);
var posY = ((screen.height-contentHeight)/2-15);
var urllocation = "/sites/popups/frameset_index_18.htm";
window.open(urllocation,"prsutvinozapirwindow",'"resizable=yes,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,left='+posX +',top='+ posY +',width='+ contentWidth+',height='+contentHeight+'"'); 
}

function opnkontaktirajtenas() { //v.2.0
var contentWidth="470";
var contentHeight="400";
var posX = ((screen.width-contentWidth)/2-6);
var posY = ((screen.height-contentHeight)/2-15);
var urllocation = "/sites/popups/frameset_index_03.htm";
window.open(urllocation,"kontaktirajtenaswindow",'"resizable=yes,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,left='+posX +',top='+ posY +',width='+ contentWidth+',height='+contentHeight+'"'); 
}

function opnisporukaplacanje() { //v.2.0
var contentWidth="470";
var contentHeight="400";
var posX = ((screen.width-contentWidth)/2-6);
var posY = ((screen.height-contentHeight)/2-15);
var urllocation = "/sites/popups/frameset_index_06.htm";
window.open(urllocation,"isporukaplacanjewindow",'"resizable=yes,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,left='+posX +',top='+ posY +',width='+ contentWidth+',height='+contentHeight+'"'); 
}


function opnlieferungzahlung() { //v.2.0
var contentWidth="470";
var contentHeight="400";
var posX = ((screen.width-contentWidth)/2-6);
var posY = ((screen.height-contentHeight)/2-15);
var urllocation = "/sites/popups/frameset_index_20.htm";
window.open(urllocation,"lieferungzahlungwindow",'"resizable=yes,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,left='+posX +',top='+ posY +',width='+ contentWidth+',height='+contentHeight+'"'); 
}

function opnnewsletter() { //v.2.0
var contentWidth="470";
var contentHeight="400";
var posX = ((screen.width-contentWidth)/2-6);
var posY = ((screen.height-contentHeight)/2-15);
var urllocation = "/sites/popups/frameset_index_13.htm";
window.open(urllocation,"newsletterwindow",'"resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,left='+posX +',top='+ posY +',width='+ contentWidth+',height='+contentHeight+'"'); 
}


function opnnewsletterde() { //v.2.0
var contentWidth="470";
var contentHeight="400";
var posX = ((screen.width-contentWidth)/2-6);
var posY = ((screen.height-contentHeight)/2-15);
var urllocation = "/sites/popups/frameset_index_17.htm";
window.open(urllocation,"newsletterwindowde",'"resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,left='+posX +',top='+ posY +',width='+ contentWidth+',height='+contentHeight+'"'); 
}

function opnankete() { //v.2.0
var contentWidth="470";
var contentHeight="400";
var posX = ((screen.width-contentWidth)/2-6);
var posY = ((screen.height-contentHeight)/2-15);
var urllocation = "/sites/popups/frameset_index_15.htm";
window.open(urllocation,"anketewindow",'"resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,left='+posX +',top='+ posY +',width='+ contentWidth+',height='+contentHeight+'"'); 
}

function opnnaciniplacanja() { //v.2.0
var contentWidth="470";
var contentHeight="400";
var posX = ((screen.width-contentWidth)/2-6);
var posY = ((screen.height-contentHeight)/2-15);
var urllocation = "/sites/popups/frameset_index_10.htm";
window.open(urllocation,"naciniplacanjawindow",'"resizable=yes,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,left='+posX +',top='+ posY +',width='+ contentWidth+',height='+contentHeight+'"'); 
}

function opnpoklon() { //v.2.0
var contentWidth="470";
var contentHeight="400";
var posX = ((screen.width-contentWidth)/2-6);
var posY = ((screen.height-contentHeight)/2-15);
var urllocation = "/sites/popups/frameset_index_12.htm";
window.open(urllocation,"poklonwindow",'"resizable=yes,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,left='+posX +',top='+ posY +',width='+ contentWidth+',height='+contentHeight+'"'); 
}


function lokacija_njemacki() {
  parent.location.href ="/de/main.php";
}

function lokacija_hrvatski() {
  parent.location.href ="/main.php";
}



var message="";



function click (e) 
{
	if (!e)
		e= window.event;
	if ((e.type && e.type == "contextmenu") || (e.button && e.button == 2) || (e.which && e.which == 3)) {
		if (window.opera)
			window.alert ("copyright");
		return false;
	}
}

if (document.layers)
	document.captureEvents(Event.MOUSEDOWN);
document.onmousedown = click;
document.oncontextmenu = click;





// datum hrvatka verzija
var now = new Date();
var yr = now.getFullYear();
var mName = now.getMonth() + 1;
var dName = now.getDay() + 1;
var dayNr = ((now.getDate() <10) ? "0" : "")+ now.getDate();
if(dName==1) Day = "nedjelja";
if(dName==2) Day = "ponedjeljak";
if(dName==3) Day = "utorak";
if(dName==4) Day = "srijeda";
if(dName==5) Day = "cetvrtak";
if(dName==6) Day = "petak";
if(dName==7) Day = "subota";
if(mName==1) Month="01.";
if(mName==2) Month="02.";
if(mName==3) Month="03.";
if(mName==4) Month="04.";
if(mName==5) Month="05.";
if(mName==6) Month="06.";
if(mName==7) Month="07.";
if(mName==8) Month="08.";
if(mName==9) Month="09.";
if(mName==10) Month="10.";
if(mName==11) Month="11.";
if(mName==12) Month="12.";
// String to display current date.
var todaysDate =(" "+ Day+ ", "+ dayNr+ ". "+ Month+ " "+ yr);



// datum njemacka verzija
var nowde = new Date();
var yrde = nowde.getFullYear();
var mName = nowde.getMonth() + 1;
var dName = nowde.getDay() + 1;
var dayNrde = ((nowde.getDate() <10) ? "0" : "")+ nowde.getDate();
if(dName==1) Dayde = "Sonntag";
if(dName==2) Dayde = "Montag";
if(dName==3) Dayde = "Dienstag";
if(dName==4) Dayde = "Mittwoch";
if(dName==5) Dayde = "Donnerstag";
if(dName==6) Dayde = "Freitag";
if(dName==7) Dayde = "Samstag";
if(mName==1) Monthde="01.";
if(mName==2) Monthde="02.";
if(mName==3) Monthde="03.";
if(mName==4) Monthde="04.";
if(mName==5) Monthde="05.";
if(mName==6) Monthde="06.";
if(mName==7) Monthde="07.";
if(mName==8) Monthde="08.";
if(mName==9) Monthde="09.";
if(mName==10) Monthde="10.";
if(mName==11) Monthde="11.";
if(mName==12) Monthde="12.";
// String to display current date.
var todaysDatede =(" "+ Dayde+ ", "+ dayNrde+ ". "+ Monthde+ " "+ yrde);





function dodajfavorite () {
	if ((document.all) && (window.offscreenBuffering)) {
	window.external.AddFavorite("http://www.hrstyle.com","HRVATSKA web Trgovina |  HRstyle.com");	
}
else if ((document.getElementById) && (!document.all)) {
	window.sidebar.addPanel("HRVATSKA web Trgovina | HRstyle.com [ ]","");
}
else {
	window.alert('obavijest:\nmolimo vas da rucno dodate\nHRstyle.com za vase favorite.\n\nhvala!');
}
}


function favoriteneintrag () {
	if ((document.all) && (window.offscreenBuffering)) {
	window.external.AddFavorite("http://www.hrstyle.com","KROATIEN web SHOP | HRstyle.com [ SHOPPEN MIT HeRz! ]");	
}
else if ((document.getElementById) && (!document.all)) {
	window.sidebar.addPanel("KROATIEN web SHOP | HRstyle.com [ SHOPPEN MIT HeRz! ]","");
}
else {
	window.alert('Hinweis:\nBitte tragen Sie HRstyle.com\nmanuell in Ihre Favoriten ein.');
}
}


function provjerakosarice() {
if(parent.theBasket.length==1) {
alert("obavijest:\nnisu ispunjeni uvjeti za uspjesnu narudzbu:\n - kosarica ne smije biti prazna\n - vasa narudzb mora iznositi najmanje 20 eura");
} else {
parent.Hauptframe.location='/buy.php';
}
}

function warenkorbcheck() {
if(parent.theBasket.length==1) {
alert("Wichtiger Hinweis:\nFolgende Voraussetzungen müssen erfüllt sein für eine erfolgreiche Bestellung:\n - Ihr Warenkorb darf keinesfalls leer sein!\n - Der Bestellwert pro Warenkorb beträgt mindestens 20 Euro!");
} else {
parent.Hauptframe.location='/de/buy.php';
}
}

function toggle(elementId, toggleElementId) {
element = document.getElementById(elementId);
toggleElement = document.getElementById(toggleElementId);
if( element != null && toggleElement != null) {
if (element.style.display == 'none') {
element.style.display = 'block';
toggleElement.style.display = 'none';
} else {
element.style.display = 'none';
toggleElement.style.display = 'block';
}	
}	 
}




