



/*	4 Image Popup	*/
function mypopup(url, imageHeight, imageWidth) {
	var image = image
	var newImageHeight = (parseInt(imageHeight) + 40); var newImageWidth = (parseInt(imageWidth) + 40);
	var yPos = ((screen.height / 2) - (parseInt(newImageHeight) / 2));
	var xPos = ((screen.width / 2) - (parseInt(newImageWidth) / 2));

	imageWindow = window.open(url, 'popupImages','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=' + newImageWidth + ',height=' + newImageHeight + ',screenY=' + yPos + ',screenX=' + xPos + ',top=' + yPos + ',left=' + xPos);

	imageWindow.moveTo(xPos, yPos);
	imageWindow.resizeTo(parseInt(imageWidth), parseInt(newImageHeight));

	if (window.focus) {
		imageWindow.focus();
	}
}

/*	4 Conditions Popup	*/
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable';
win = window.open(mypage,myname,settings);
}

/*	4 Conditions Checkbox on checkout_confirmation.php	*/
function check_agree(TheForm) {
  if (TheForm.agree.checked) {
    return true;
  } else {
    //	alert(unescape('<?php echo CONDITION_AGREEMENT_ERROR; ?>'));
		alert('Please read our conditions of use and agree to them. If you do not, your order will not be processed.');
    return false;
  }
}
	
/*	4 Row Effects	*/	
function rowOverEffect(object) {
  if (document.checkout_confirmation.elements[object].parentNode.parentNode.className != 'moduleRowSelected') {
    document.checkout_confirmation.elements[object].parentNode.parentNode.className = 'moduleRowOver';
  }
}
function rowOutEffect(object) {
  if (document.checkout_confirmation.elements[object].checked) {
    document.checkout_confirmation.elements[object].parentNode.parentNode.className = 'moduleRowSelected';
  } else {
    document.checkout_confirmation.elements[object].parentNode.parentNode.className = 'infoBoxContents';
  }
}
function checkboxRowEffect(object) {
  document.checkout_confirmation.elements[object].checked = !document.checkout_confirmation.elements[object].checked;
  if(document.checkout_confirmation.elements[object].checked) {
    document.checkout_confirmation.elements[object].parentNode.parentNode.className = 'moduleRowSelected';
  } else {
    document.checkout_confirmation.elements[object].parentNode.parentNode.className = 'moduleRowOver';
  }
}

/*  Stockists */
function hideAllCountries() {
  //document.getElementById('austria').style.display='none';
  //document.getElementById('austriaLink').style.fontWeight='normal';
  document.getElementById('belgium').style.display='none';
  document.getElementById('belgiumLink').style.fontWeight='normal';
  document.getElementById('denmark').style.display='none';
  document.getElementById('denmarkLink').style.fontWeight='normal';
  document.getElementById('france').style.display='none';
  document.getElementById('franceLink').style.fontWeight='normal';
  document.getElementById('germany').style.display='none';
  document.getElementById('germanyLink').style.fontWeight='normal';
  document.getElementById('greece').style.display='none';
  document.getElementById('greeceLink').style.fontWeight='normal';
  document.getElementById('holland').style.display='none';
  document.getElementById('hollandLink').style.fontWeight='normal';
  document.getElementById('italy').style.display='none';
  document.getElementById('italyLink').style.fontWeight='normal';
  document.getElementById('japan').style.display='none';
  document.getElementById('japanLink').style.fontWeight='normal';
  document.getElementById('new_zealand').style.display='none';
  document.getElementById('new_zealandLink').style.fontWeight='normal';
  document.getElementById('norway').style.display='none';
  document.getElementById('norwayLink').style.fontWeight='normal';
  document.getElementById('south_korea').style.display='none';
  document.getElementById('south_koreaLink').style.fontWeight='normal';
  document.getElementById('spain').style.display='none';
  document.getElementById('spainLink').style.fontWeight='normal';
  document.getElementById('switzerland').style.display='none';
  document.getElementById('switzerlandLink').style.fontWeight='normal';
  //document.getElementById('ireland').style.display='none';
  //document.getElementById('irelandLink').style.fontWeight='normal';
  //document.getElementById('russia').style.display='none';
  //document.getElementById('russiaLink').style.fontWeight='normal';
  document.getElementById('sweden').style.display='none';
  document.getElementById('swedenLink').style.fontWeight='normal';
  document.getElementById('uk').style.display='none';
  document.getElementById('ukLink').style.fontWeight='normal';
  //document.getElementById('ukraine').style.display='none';
  //document.getElementById('ukraineLink').style.fontWeight='normal';
  document.getElementById('usa').style.display='none';
  document.getElementById('usaLink').style.fontWeight='normal';
  //document.getElementById('uae').style.display='none';
  //document.getElementById('uaeLink').style.fontWeight='normal';
  
}

function showCountry(country) {
  var countryLink = country + 'Link';
  document.getElementById(country).style.display='block';
  document.getElementById(countryLink).style.fontWeight='bold';
}
	/*
function imageRotation() {
  var i = 0;
	var intervall=5000 <!-- Time in milliseconds betweeb each image. -->
  var total_images = 7; <!-- total number of images -->
	//var img = new Array();
*/
  /*
	img[0]='<a href="lien_1.html"><img src="images1.gif" border=0 width=88 height=31 alt="Votre commentaire 1"></a>';
	img[1]='<a href="lien_2.html"><img src="images2.gif" border=0 width=468 height=60 alt="Votre commentaire 2"></a>';
	img[2]='<a href="lien_3.html"><img src="images3.gif" border=0 width=120 height=60 alt="Votre commentaire 3"></a>';
  */
 /*
	rotator.innerHTML=img[i];
	i++;
	i%=total_images;
	setTimeout("imageRotation()",intervall);
}	
	*/
	
  
/*  IE6 PNG Transparency Fix  */
