function ValidateServicesEnquiryForm (form) { // Used in Give us your feedback page (pageid=5&ctype=bm)
  var fname = form.fullname.value;   
  var country = form.country.value;   
	var phone = form.phone.value;
  var email = form.email.value;   

  if (!fname)	{
    alert("You must enter your full name.");
    return false;
	} else if (!country) {
		alert("You must select your country.");
		return false;
	} else if ((!phone)&&(!email)) {
		alert("You must enter your phone number or your email address.");
		return false;
	} else if ((email)&&((email.indexOf('@') == -1) || (email.indexOf('.') == -1))) {
		alert("Wrong email format.");
		return false;
	} else {
		return true;
	}
}
function ValidateProductEnquiryForm (form) { // Used in Give us your feedback page (pageid=5&ctype=bm)
  var fname = form.fullname.value;   
  var country = form.country.value;   
	var phone = form.phone.value;
  var email = form.email.value;   

  if (!fname)	{
    alert("You must enter your full name.");
    return false;
	} else if (!country) {
		alert("You must select your country.");
		return false;
	} else if ((!phone)&&(!email)) {
		alert("You must enter your phone number or your email address.");
		return false;
	} else if ((email)&&((email.indexOf('@') == -1) || (email.indexOf('.') == -1))) {
		alert("Wrong email format.");
		return false;
	} else {
		return true;
	}
}

function ValidateContactForm (form) { 
  var fname = form.fullname.value;   
  var country = form.country.value;   
	var phone = form.phone.value;
  var email = form.email.value;   

  if (!fname)	{
    alert("You must enter your full name.");
    return false;
	} else if (!country) {
		alert("You must select your country.");
		return false;
	} else if ((!phone)&&(!email)) {
		alert("You must enter your phone number or your email address.");
		return false;
	} else if ((email)&&((email.indexOf('@') == -1) || (email.indexOf('.') == -1))) {
		alert("Wrong email format.");
		return false;
	} else {
		return true;
	}
}
function ValidateMailingListRequestForm (form) { 
  var email = form.email.value;   

	if (!email) {
		alert("You must enter your email.");
		return false;
	} else if ((email.indexOf('@') == -1) || (email.indexOf('.') == -1)) {
		alert("Wrong email format.");
		return false;
	} else {
		return true;
	}
}

function ValidateContestForm (form) { // Used in Give us your feedback page (pageid=5&ctype=bm)
  var fname = form.fullname.value;   
  var age = form.age.value;
  var email = form.email.value;   
  var location = form.location.value;   
  var cal = form.cal.value;   

  if (!fname)	{
	alert("You must enter your fullname.");
	return false;
  } else if (!age) {
	alert("You must enter your age.");
	return false;
  } else if (!email) {
	alert("You must enter your email.");
	return false;
  } else if ((email)&&((email.indexOf('@') == -1) || (email.indexOf('.') == -1))) {
	alert("Wrong email format.");
	return false;
  } else if (!location) {
	alert("You must enter your city.");
	return false;
  } else if (cal != 5) {
	  alert("Please calculate 2+3 correctly");
	  return false;
  } else {
	return true;
  }
}
function currencyConverter(sefUrlStatus) {
	fileLocation = '';
	if (sefUrlStatus!='Y') {
		fileLocation = '';
	} else {
		fileLocation = '/';
	}

	w_width = 810;
	w_height = 302;
	if (screen) {
		w_left = (screen.availWidth - w_width)/2;
		w_top = ((screen.availHeight - w_height)/2)-20;
	}
	theWindowParam = 'width='+w_width+',height='+w_height+',left='+w_left+',top='+w_top+',scrollbars=yes,resizable=yes';

	fparam = fileLocation+'tools/ucc/index.php';
  window.showCurrencyConverterWindow = open(fparam, 'showCurrencyConverterWindow', theWindowParam);
	setTimeout('if(showCurrencyConverterWindow&&!showCurrencyConverterWindow.closed)showCurrencyConverterWindow.focus()',100);
}

function showMap() {
	w_width = 640;
	w_height = 400;
	if (screen) {
		w_left = (screen.availWidth - w_width)/2;
		w_top = ((screen.availHeight - w_height)/2)-20;
	}
	theWindowParam = 'width='+w_width+',height='+w_height+',left='+w_left+',top='+w_top+',status=no,resizable=no,scrollbars=no';

	fparam = 'showmap.html';
  window.showMapWindow = open(fparam, 'showMapWindow', theWindowParam);
	setTimeout('if(showMapWindow&&!showMapWindow.closed)showMapWindow.focus()',100);
}
function showContact() {
	w_width = 640;
	w_height = 400;
	if (screen) {
		w_left = (screen.availWidth - w_width)/2;
		w_top = ((screen.availHeight - w_height)/2)-20;
	}
	theWindowParam = 'width='+w_width+',height='+w_height+',left='+w_left+',top='+w_top+',status=no,resizable=no,scrollbars=no';

	fparam = 'showcontact.html';
  window.showContactWindow = open(fparam, 'showContactWindow', theWindowParam);
	setTimeout('if(showContactWindow&&!showContactWindow.closed)showContactWindow.focus()',100);
}
function printPage() {
  lochref = '' + this.location;
	if (lochref.indexOf('?') > 0) {
		lochref = '?' + lochref.substring((lochref.indexOf('?')) + 1);
	} else {
		lochref = '';
	}

	w_width = 750;
	w_height = 650;
	if (screen) {
		w_left = (screen.availWidth - w_width)/2;
		w_top = ((screen.availHeight - w_height)/2)-20;
	}
	theWindowParam = 'width='+w_width+',height='+w_height+',left='+w_left+',top='+w_top+',status=no,resizable=yes,scrollbars=yes';

	fparam = 'print.php'+lochref;
  window.showPrintWindow = open(fparam, 'showPrintWindow', theWindowParam);
	setTimeout('if(showPrintWindow&&!showPrintWindow.closed)showPrintWindow.focus()',100);
}
function ListenLiveWindow(theStation) {
	w_width = 767;
	w_height = 550;

	if (screen) {
		w_left = (screen.availWidth - w_width)/2;
		w_top = ((screen.availHeight - w_height)/2)-20;
	}
	theWindowParam = 'width='+w_width+',height='+w_height+',left='+w_left+',top='+w_top+',status=no,resizable=no,scrollbars=yes';

  fparam = 'live.php?station=' + theStation;
  window.LiveStationWindow = open(fparam, 'LiveStationWindow', theWindowParam);
  setTimeout('if(LiveStationWindow&&!LiveStationWindow.closed)LiveStationWindow.focus()',100);
}
function emailPage() {
  lochref = '' + this.location;
	if (lochref.indexOf('?') > 0) {
		lochref = '?' + lochref.substring((lochref.indexOf('?')) + 1);
	} else {
		lochref = '';
	}

	w_width = 480;
	w_height = 400;
	if (screen) {
		w_left = (screen.availWidth - w_width)/2;
		w_top = ((screen.availHeight - w_height)/2)-20;
	}
	theWindowParam = 'width='+w_width+',height='+w_height+',left='+w_left+',top='+w_top+',status=no,resizable=no,scrollbars=no';

	fparam = 'tools/emailpage/index.php'+lochref;
  window.showEmailWindow = open(fparam, 'showEmailWindow', theWindowParam);
	setTimeout('if(showEmailWindow&&!showEmailWindow.closed)showEmailWindow.focus()',100);
}
function popupWindow (theWindow, theParam) {

//	newLeft = screen.width
//	newTop = screen.height
	switch (theWindow)
	{
		case 'newmenu':
			window.open('menuform.php?'+theParam, 'NewMenu', 'toolbar=no,status=no,scrollbars=yes,resizable=yes,location=no,menubar=no,directories=no,width=500,height=500,left=50,top=50');
		break
		case 'editmenu':
			window.open('menuform.php?'+theParam, 'EditMenu', 'toolbar=no,status=no,scrollbars=yes,resizable=yes,location=no,menubar=no,directories=no,width=500,height=500,left=50,top=50');
		break
		default:
			return;
	}
}
function changeLangAlert(theLang) {
	alert('The '+theLang+' language is not published yet. Please check back soon.');
}
function changeLang(theLang, theQueryString) {
  lochref = '';
	// Check if already lang parameter is sent
	if (theQueryString.match('lang=') != null) {
		langPos = theQueryString.indexOf('lang=');
		theQueryString = theQueryString.substring(0,(langPos-1))+theQueryString.substring((langPos-1)+8);
	}
	// Check all parameters that 'index.php' files handles
	if (theQueryString != '') {
		lochref = 'index.php?'+theQueryString+'&lang='+theLang;
	} else {
		lochref = 'index.php?lang='+theLang;
	}
	location = lochref;
}
function goToSearch(theform) {
  var theSearchQuery = theform.searchquery.value;
	
  lochref = 'index.php?pageaction=search&searchquery=' + theSearchQuery;
	
	location = lochref;
}
function goToSitemap() {

  lochref = 'index.php?pageaction=sitemap';

	location = lochref;
}


function standard_18_showPhoto(theId, theLang, thePhotoNum) {
	w_width = 700;
	w_height = 620;
	if (screen) {
		w_left = (screen.availWidth - w_width)/2;
		w_top = ((screen.availHeight - w_height)/2)-20;
	}
	theWindowParam = 'width='+w_width+',height='+w_height+',left='+w_left+',top='+w_top+',status=no,resizable=yes,scrollbars=yes';

	fparam = 'templates/ws_mm_standard_18/showphoto.php?pageid=' + theId + '&lang=' + theLang + '&photonum=' + thePhotoNum;
  window.standard_18_showPhotoWindow = open(fparam, 'standard_18_showPhotoWindow', theWindowParam);
	setTimeout('if(standard_18_showPhotoWindow&&!standard_18_showPhotoWindow.closed)standard_18_showPhotoWindow.focus()',100);
}
function standard_18_showGallery(theId, theLang, thePhotoId) {
		w_width = 740;
		w_height = 640;

	if (screen) {
		w_left = (screen.availWidth - w_width)/2;
		w_top = ((screen.availHeight - w_height)/2)-20;
	}
	theWindowParam = 'width='+w_width+',height='+w_height+',left='+w_left+',top='+w_top+',status=no,resizable=yes,scrollbars=yes';

	fparam = 'templates/ws_mm_standard_18/showphotogallery.php?pageid=' + theId+'&lang=' + theLang +'&photoid='+thePhotoId;
  window.standard_18_showGalleryWindow = open(fparam, 'standard_18_showGalleryWindow', theWindowParam);
	setTimeout('if(standard_18_showGalleryWindow&&!standard_18_showGalleryWindow.closed)standard_18_showGalleryWindow.focus()',100);
}
function standard_18_ShowPhotoSrc(theId, theFile, theDescId, theDesc) {

	if (document.getElementById) {
		var c = document.getElementById(theId);
		if (c.style.display != "block") {
			c.innerHTML = '<img src="' + theFile + '">';
		} else {
			c.innerHTML = '<img src="../../layout/images/transparent.gif">';
			c.style.display="none";
		}
	}
	document.getElementById(theId).alt = theDesc;
	document.getElementById(theDescId).value = theDesc;
}

function showcase_11_showGallery(theId, theLang, $thePhotoId) {
		w_width = 740;
		w_height = 640;

	if (screen) {
		w_left = (screen.availWidth - w_width)/2;
		w_top = ((screen.availHeight - w_height)/2)-20;
	}
	theWindowParam = 'width='+w_width+',height='+w_height+',left='+w_left+',top='+w_top+',status=no,resizable=yes,scrollbars=yes';

	fparam = 'templates/ws_mm_showcase_11/showphotogallery.php?pageid=' + theId+'&lang=' + theLang +'&photoid='+$thePhotoId;
  window.showcase_11_showGalleryWindow = open(fparam, 'showcase_11_showGalleryWindow', theWindowParam);
	setTimeout('if(showcase_11_showGalleryWindow&&!showcase_11_showGalleryWindow.closed)showcase_11_showGalleryWindow.focus()',100);
}
function showcase_11_ShowPhotoSrc(theId, theFile, theDescId, theDesc) {

	if (document.getElementById) {
		var c = document.getElementById(theId);
		if (c.style.display != "block") {
			c.innerHTML = '<img src="' + theFile + '">';
		} else {
			c.innerHTML = '<img src="../../layout/images/transparent.gif">';
			c.style.display="none";
		}
	}
	document.getElementById(theId).alt = theDesc;
	document.getElementById(theDescId).value = theDesc;
}

function mm_news_24_photoGallery(theId, theLang) {
	w_width = 700;
	w_height = 620;
	if (screen) {
		w_left = (screen.availWidth - w_width)/2;
		w_top = ((screen.availHeight - w_height)/2)-20;
	}
	theWindowParam = 'width='+w_width+',height='+w_height+',left='+w_left+',top='+w_top+',status=no,resizable=yes,scrollbars=yes';

	fparam = 'templates/ws_mm_news_24/showmm_news_24_photoGallery.php?pageid=' + theId + '&lang=' + theLang;
  window.mm_news_24_photoGalleryWindow = open(fparam, 'mm_news_24_photoGalleryWindow', theWindowParam);
	setTimeout('if(mm_news_24_photoGalleryWindow&&!mm_news_24_photoGalleryWindow.closed)mm_news_24_photoGalleryWindow.focus()',100);
}


//v1.0
//Copyright 2006 Adobe Systems, Inc. All rights reserved.
function AC_AddExtension(src, ext)
{
  if (src.indexOf('?') != -1)
    return src.replace(/\?/, ext+'?'); 
  else
    return src + ext;
}

function AC_Generateobj(objAttrs, params, embedAttrs) 
{ 
  var str = '<object ';
  for (var i in objAttrs)
    str += i + '="' + objAttrs[i] + '" ';
  str += '>';
  for (var i in params)
    str += '<param name="' + i + '" value="' + params[i] + '" /> ';
  str += '<embed ';
  for (var i in embedAttrs)
    str += i + '="' + embedAttrs[i] + '" ';
  str += ' ></embed></object>';

  document.write(str);
}

function AC_FL_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
     , "application/x-shockwave-flash"
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_SW_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
     , null
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
  var ret = new Object();
  ret.embedAttrs = new Object();
  ret.params = new Object();
  ret.objAttrs = new Object();
  for (var i=0; i < args.length; i=i+2){
    var currArg = args[i].toLowerCase();    

    switch (currArg){	
      case "classid":
        break;
      case "pluginspage":
        ret.embedAttrs[args[i]] = args[i+1];
        break;
      case "src":
      case "movie":	
        args[i+1] = AC_AddExtension(args[i+1], ext);
        ret.embedAttrs["src"] = args[i+1];
        ret.params[srcParamName] = args[i+1];
        break;
      case "onafterupdate":
      case "onbeforeupdate":
      case "onblur":
      case "oncellchange":
      case "onclick":
      case "ondblClick":
      case "ondrag":
      case "ondragend":
      case "ondragenter":
      case "ondragleave":
      case "ondragover":
      case "ondrop":
      case "onfinish":
      case "onfocus":
      case "onhelp":
      case "onmousedown":
      case "onmouseup":
      case "onmouseover":
      case "onmousemove":
      case "onmouseout":
      case "onkeypress":
      case "onkeydown":
      case "onkeyup":
      case "onload":
      case "onlosecapture":
      case "onpropertychange":
      case "onreadystatechange":
      case "onrowsdelete":
      case "onrowenter":
      case "onrowexit":
      case "onrowsinserted":
      case "onstart":
      case "onscroll":
      case "onbeforeeditfocus":
      case "onactivate":
      case "onbeforedeactivate":
      case "ondeactivate":
      case "type":
      case "codebase":
        ret.objAttrs[args[i]] = args[i+1];
        break;
      case "width":
      case "height":
      case "align":
      case "vspace": 
      case "hspace":
      case "class":
      case "title":
      case "accesskey":
      case "name":
      case "id":
      case "tabindex":
        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
        break;
      default:
        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
    }
  }
  ret.objAttrs["classid"] = classid;
  if (mimeType) ret.embedAttrs["type"] = mimeType;
  return ret;
}


/* functions for template ws_mm_services_05 */

function services_05_showEnquiry(theId, theLang) {
	w_width = 550;
	w_height = 600;
	if (screen) {
		w_left = (screen.availWidth - w_width)/2;
		w_top = ((screen.availHeight - w_height)/2)-20;
	}
	theWindowParam = 'width='+w_width+',height='+w_height+',left='+w_left+',top='+w_top+',status=no,resizable=yes,scrollbars=yes';

	fparam = 'templates/ws_mm_services_05/showenquiry.php?pageid=' + theId + '&lang=' + theLang;
  window.showPhotoWindow = open(fparam, 'showPhotoWindow', theWindowParam);
	setTimeout('if(showPhotoWindow&&!showPhotoWindow.closed)showPhotoWindow.focus()',100);
}

/* functions for template ws_mm_products_33 */

function products_33_showEnquiry(theId, theLang) {
	w_width = 550;
	w_height = 600;
	if (screen) {
		w_left = (screen.availWidth - w_width)/2;
		w_top = ((screen.availHeight - w_height)/2)-20;
	}
	theWindowParam = 'width='+w_width+',height='+w_height+',left='+w_left+',top='+w_top+',status=no,resizable=yes,scrollbars=yes';

	fparam = 'templates/ws_mm_products_33/showenquiry.php?pageid=' + theId + '&lang=' + theLang;
  window.showPhotoWindow = open(fparam, 'showPhotoWindow', theWindowParam);
	setTimeout('if(showPhotoWindow&&!showPhotoWindow.closed)showPhotoWindow.focus()',100);
}


function products_33_TabConf(DispTab) {
	if (DispTab == '1') {
		document.getElementById("FeaturesBlock").style.display = "block";	
		document.getElementById("SpecsBlock").style.display = "none";	
	} else if (DispTab == '2') {
		document.getElementById("FeaturesBlock").style.display = "none";	
		document.getElementById("SpecsBlock").style.display = "block";	
	}
}

function faq_02_ShowAnswer(theId) {
  theAnswerDisplStatus = document.getElementById("faq_"+theId).style.display;
	if (theAnswerDisplStatus == 'none') {
		document.getElementById("faq_"+theId).style.display = 'block';
		document.getElementById("faq_image_"+theId).src = 'layout/images/cllapse_btn.gif';
	} else {
		document.getElementById("faq_"+theId).style.display = 'none';
		document.getElementById("faq_image_"+theId).src = 'layout/images/expand_btn.gif';
	}
}

function products_36_TabsConf(theTabNum) {
	if (theTabNum == '1') {
		if (document.getElementById('DetailsTab1'))
		  document.getElementById('DetailsTab1').style.display = 'block';
		if (document.getElementById('DetailsTab2'))
		  document.getElementById('DetailsTab2').style.display = 'none';
		if (document.getElementById('DetailsTab3'))
		  document.getElementById('DetailsTab3').style.display = 'none';
		if (document.getElementById('DetailsTab4'))
		  document.getElementById('DetailsTab4').style.display = 'none';
		if (document.getElementById('DetailsTab5'))
		  document.getElementById('DetailsTab5').style.display = 'none';
		if (document.getElementById('DetailsTab6'))
		  document.getElementById('DetailsTab6').style.display = 'none';
		if (document.getElementById('DetailsTab7'))
		  document.getElementById('DetailsTab7').style.display = 'none';
		if (document.getElementById('DetailsTab8'))
		  document.getElementById('DetailsTab8').style.display = 'none';
	} else if (theTabNum == '2') {
		if (document.getElementById('DetailsTab1'))
		  document.getElementById('DetailsTab1').style.display = 'none';
		if (document.getElementById('DetailsTab2'))
		  document.getElementById('DetailsTab2').style.display = 'block';
		if (document.getElementById('DetailsTab3'))
		  document.getElementById('DetailsTab3').style.display = 'none';
		if (document.getElementById('DetailsTab4'))
		  document.getElementById('DetailsTab4').style.display = 'none';
		if (document.getElementById('DetailsTab5'))
		  document.getElementById('DetailsTab5').style.display = 'none';
		if (document.getElementById('DetailsTab6'))
		  document.getElementById('DetailsTab6').style.display = 'none';
		if (document.getElementById('DetailsTab7'))
		  document.getElementById('DetailsTab7').style.display = 'none';
		if (document.getElementById('DetailsTab8'))
		  document.getElementById('DetailsTab8').style.display = 'none';
	} else if (theTabNum == '3') {
		if (document.getElementById('DetailsTab1'))
		  document.getElementById('DetailsTab1').style.display = 'none';
		if (document.getElementById('DetailsTab2'))
		  document.getElementById('DetailsTab2').style.display = 'none';
		if (document.getElementById('DetailsTab3'))
		  document.getElementById('DetailsTab3').style.display = 'block';
		if (document.getElementById('DetailsTab4'))
		  document.getElementById('DetailsTab4').style.display = 'none';
		if (document.getElementById('DetailsTab5'))
		  document.getElementById('DetailsTab5').style.display = 'none';
		if (document.getElementById('DetailsTab6'))
		  document.getElementById('DetailsTab6').style.display = 'none';
		if (document.getElementById('DetailsTab7'))
		  document.getElementById('DetailsTab7').style.display = 'none';
		if (document.getElementById('DetailsTab8'))
		  document.getElementById('DetailsTab8').style.display = 'none';
	} else if (theTabNum == '4') {
		if (document.getElementById('DetailsTab1'))
		  document.getElementById('DetailsTab1').style.display = 'none';
		if (document.getElementById('DetailsTab2'))
		  document.getElementById('DetailsTab2').style.display = 'none';
		if (document.getElementById('DetailsTab3'))
		  document.getElementById('DetailsTab3').style.display = 'none';
		if (document.getElementById('DetailsTab4'))
		  document.getElementById('DetailsTab4').style.display = 'block';
		if (document.getElementById('DetailsTab5'))
		  document.getElementById('DetailsTab5').style.display = 'none';
		if (document.getElementById('DetailsTab6'))
		  document.getElementById('DetailsTab6').style.display = 'none';
		if (document.getElementById('DetailsTab7'))
		  document.getElementById('DetailsTab7').style.display = 'none';
		if (document.getElementById('DetailsTab8'))
		  document.getElementById('DetailsTab8').style.display = 'none';
	} else if (theTabNum == '5') {
		if (document.getElementById('DetailsTab1'))
		  document.getElementById('DetailsTab1').style.display = 'none';
		if (document.getElementById('DetailsTab2'))
		  document.getElementById('DetailsTab2').style.display = 'none';
		if (document.getElementById('DetailsTab3'))
		  document.getElementById('DetailsTab3').style.display = 'none';
		if (document.getElementById('DetailsTab4'))
		  document.getElementById('DetailsTab4').style.display = 'none';
		if (document.getElementById('DetailsTab5'))
		  document.getElementById('DetailsTab5').style.display = 'block';
		if (document.getElementById('DetailsTab6'))
		  document.getElementById('DetailsTab6').style.display = 'none';
		if (document.getElementById('DetailsTab7'))
		  document.getElementById('DetailsTab7').style.display = 'none';
		if (document.getElementById('DetailsTab8'))
		  document.getElementById('DetailsTab8').style.display = 'none';
	} else if (theTabNum == '6') {
		if (document.getElementById('DetailsTab1'))
		  document.getElementById('DetailsTab1').style.display = 'none';
		if (document.getElementById('DetailsTab2'))
		  document.getElementById('DetailsTab2').style.display = 'none';
		if (document.getElementById('DetailsTab3'))
		  document.getElementById('DetailsTab3').style.display = 'none';
		if (document.getElementById('DetailsTab4'))
		  document.getElementById('DetailsTab4').style.display = 'none';
		if (document.getElementById('DetailsTab5'))
		  document.getElementById('DetailsTab5').style.display = 'none';
		if (document.getElementById('DetailsTab6'))
		  document.getElementById('DetailsTab6').style.display = 'block';
		if (document.getElementById('DetailsTab7'))
		  document.getElementById('DetailsTab7').style.display = 'none';
		if (document.getElementById('DetailsTab8'))
		  document.getElementById('DetailsTab8').style.display = 'none';
	} else if (theTabNum == '7') {
		if (document.getElementById('DetailsTab1'))
		  document.getElementById('DetailsTab1').style.display = 'none';
		if (document.getElementById('DetailsTab2'))
		  document.getElementById('DetailsTab2').style.display = 'none';
		if (document.getElementById('DetailsTab3'))
		  document.getElementById('DetailsTab3').style.display = 'none';
		if (document.getElementById('DetailsTab4'))
		  document.getElementById('DetailsTab4').style.display = 'none';
		if (document.getElementById('DetailsTab5'))
		  document.getElementById('DetailsTab5').style.display = 'none';
		if (document.getElementById('DetailsTab6'))
		  document.getElementById('DetailsTab6').style.display = 'none';
		if (document.getElementById('DetailsTab7'))
		  document.getElementById('DetailsTab7').style.display = 'block';
		if (document.getElementById('DetailsTab8'))
		  document.getElementById('DetailsTab8').style.display = 'none';
	} else if (theTabNum == '8') {
		if (document.getElementById('DetailsTab1'))
		  document.getElementById('DetailsTab1').style.display = 'none';
		if (document.getElementById('DetailsTab2'))
		  document.getElementById('DetailsTab2').style.display = 'none';
		if (document.getElementById('DetailsTab3'))
		  document.getElementById('DetailsTab3').style.display = 'none';
		if (document.getElementById('DetailsTab4'))
		  document.getElementById('DetailsTab4').style.display = 'none';
		if (document.getElementById('DetailsTab5'))
		  document.getElementById('DetailsTab5').style.display = 'none';
		if (document.getElementById('DetailsTab6'))
		  document.getElementById('DetailsTab6').style.display = 'none';
		if (document.getElementById('DetailsTab7'))
		  document.getElementById('DetailsTab7').style.display = 'none';
		if (document.getElementById('DetailsTab8'))
		  document.getElementById('DetailsTab8').style.display = 'block';
	}
}

function products_36_showEnquiry(theId, theLang) {
	w_width = 550;
	w_height = 600;
	if (screen) {
		w_left = (screen.availWidth - w_width) / 2;
		w_top = ((screen.availHeight - w_height) / 2) - 20;
	}
	theWindowParam = 'width='+w_width+',height='+w_height+',left='+w_left+',top='+w_top+',status=no,resizable=yes,scrollbars=yes';

	fparam = 'templates/ws_mm_products_36/showenquiry.php?pageid=' + theId + '&lang=' + theLang;
  window.showEnquiryWindow = open(fparam, 'showEnquiryWindow', theWindowParam);
	setTimeout('if(showEnquiryWindow&&!showEnquiryWindow.closed)showEnquiryWindow.focus()',100);
}

function photos_11_ShowPhotoSrc(theId, theThumbPhoto, theNormalPhoto, theDescr, theImgWidthParam, theDefImgWidthParam, theImgHeightParam, theDefImgHeightParam) {
	var theImgWidth = parseInt(theImgWidthParam,10);
	var theDefImgWidth = parseInt(theDefImgWidthParam,10);	
	var theWidth = theImgWidth;
	if (theImgWidth > theDefImgWidth) {
		theWidth = theDefImgWidth;
	}
	
	/*
	var theImgHeight = parseInt(theImgHeightParam,10);
	var theDefImgHeight = parseInt(theDefImgHeightParam,10);	
	var theHeight = theImgHeight;
	if (theImgHeight > theDefImgHeight) {
		theHeight = theDefImgHeight;
	}
	*/

	if (document.getElementById) {
		var c = document.getElementById(theId);
		
		if (c.style.display != "block") {
			c.innerHTML = '<img src="' + theNormalPhoto + '" width="' + theWidth + /* '" height="' + theHeight + */ '" border="0">';
			// document.getElementById("mb1").href = theNormalPhoto;
			var photo_descr = document.getElementById("mb1_descr");
			if(theDescr) {
			  photo_descr.innerHTML = theDescr;
			  photo_descr.style.display = "block"
			} else {
			  photo_descr.style.display = "none"
			}
		} else {
			c.innerHTML = '<img src="../../layout/images/transparent.gif">';
			c.style.display="none";
		}
	}
	//document.getElementById(theId).alt = theDesc;
	//document.getElementById(theDescId).value = theDesc;
}

function FA_ShowPhotoSrc(theId, theLink, thePathImage, theWidth, theHeight) {
	if (document.getElementById) {
		var c = document.getElementById("rotate_articles");
		if (thePathImage == '') { 		
      		c.style.display = "none";		
		} else {
      		c.style.display = "block";		
			c.innerHTML = '<a href="' + theLink + '"><img src="' + thePathImage + '" width="' + theWidth + '" height="' + theHeight + '" border="0"></a>';
		}
	}
}

function FA_fChangeTickerBlockEntry() {
	nTickerBlockToShow = nTickerBlockToShow + 1;
	if (nTickerBlockToShow >= aTickerBody.length) {
		nTickerBlockToShow = 0;
	}

	var eTicker = document.getElementById('rotate_articles');
	var sHTML = aTickerBody[nTickerBlockToShow];
	eTicker.innerHTML = sHTML;
}


function videos_04_PlayVideo(theId, theLang, theDivId, ShowVidInfo) {
	var ajaxRequest;  // The variable that makes Ajax possible!
	
	try {
		// Opera 8.0+, Firefox, Safari
		ajaxRequest = new XMLHttpRequest();
	} catch (e){
		// Internet Explorer Browsers
		try {
			ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e){
				// Something went wrong
				alert("Something is wrong with your browser!");
				return false;
			}
		}
	}
	
	// Create a function that will receive data sent from the server
	//diplay loading area and hide video area
	document.getElementById("FilmLoadingArea").style.display = "block";
	document.getElementById("FilmVideoBlock").style.display = "none";
	
  // alert('yes');
	// Create a function that will receive data sent from the server
	ajaxRequest.onreadystatechange = function(){
		if(ajaxRequest.readyState == 4){
			var ajaxDisplay = document.getElementById(theDivId);
			ajaxDisplay.innerHTML = ajaxRequest.responseText;
		}
	}
	//var cbx_id = document.getElementById(theMasterField).value;
	var queryString = "?vidid="+theId+"&lang="+theLang+"&showinf="+ShowVidInfo;
	//alert(queryString);
	ajaxRequest.open("GET", "tools/play_video/index.php" + queryString, true);
	ajaxRequest.send(null); 
}

function ClearSearchField(theForm) {
 theForm.searchquery.value = '';
}

function viewMore(theId) {
	document.getElementById('less_block_'+theId).style.display = 'none';
	document.getElementById('more_block_'+theId).style.display = 'block';
}

function viewLess(theId) {
	document.getElementById('less_block_'+theId).style.display = 'block';
	document.getElementById('more_block_'+theId).style.display = 'none';
}

function changeBackground(theColor, theQueryString) {
//	document.getElementById('body').style.backgroundColor = theColor;

  lochref = '';
	// Check if already bgrnd parameter is sent
	if (theQueryString.match('bgrnd=') != null) {
		bgrndPos = theQueryString.indexOf('bgrnd=');
		theQueryString = theQueryString.substring(0,(bgrndPos-1))+theQueryString.substring((bgrndPos-1)+8);
	}
	// Check all parameters that 'index.php' files handles
	if (theQueryString != '') {
		lochref = 'index.php?'+theQueryString+'&bgrnd='+theColor;
	} else {
		lochref = 'index.php?bgrnd='+theColor;
	}
	location = lochref;

}

function makeDefault(element)
{
	element.style.behavior='url(#default#homepage)'; 
	element.setHomePage('http://www.mydeejay.com.cy/index.php');
}

function HideSPPMediaBlock() {
	document.getElementById("SPPMediaNetworkBlock").style.display = "none";
}


