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_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 MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function openAWindow( pageToLoad, winName, width, height, center) {
xposition=0; yposition=0;
if ((parseInt(navigator.appVersion) >= 4 ) &&(center)){ xposition = (screen.width - width) / 2; yposition = (screen.height - height) / 2;}

args = "width=" + width + "," + "height=" + height + "," + "location=0," + "menubar=0,"
+ "resizable=1," + "scrollbars=1," + "status=0," + "titlebar=0," + "toolbar=0,"
+ "hotkeys=0," + "screenx=" + xposition + "," + "screeny=" + yposition + "," 
+ "left=" + xposition + "," + "top=" + yposition;
window.open( pageToLoad, winName, args );
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function pf_preload()
{
//window.alert("pf_preload()");
MM_preloadImages('/images/b1_.gif','/images/b2_.gif','/images/b3_.gif','/images/b4_.gif','/images/b5_.gif','/images/b6_.gif','/images/b7_.gif');
MM_preloadImages('/images/b1_1_.gif','/images/b1_2_.gif','/images/b1_3_.gif','/images/b1_4_.gif','/images/b1_5_.gif');
MM_preloadImages('/images/b1_1.gif','/images/b1_2.gif','/images/b1_3.gif','/images/b1_4.gif','/images/b1_5.gif');

MM_preloadImages('/images/m_art_a.gif','/images/m_rel_a.gif');
MM_preloadImages('/images/m_art.gif','/images/m_rel.gif');

MM_preloadImages('/images/b2_1_.gif','/images/b2_2_.gif','/images/b2_3_.gif');
MM_preloadImages('/images/b2_1.gif','/images/b2_2.gif','/images/b2_3.gif');
MM_preloadImages('/images/b3_1_.gif','/images/b3_2_.gif');
MM_preloadImages('/images/b3_1.gif','/images/b3_2.gif');
MM_preloadImages('/images/b6_1_.gif','/images/b6_2_.gif','/images/b6_3_.gif','/images/b6_4_.gif');
MM_preloadImages('/images/b6_1.gif','/images/b6_2.gif','/images/b6_3.gif','/images/b6_4.gif');
}


function InsertFlash(){
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="753" height="319" id="promo">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="movie" value="flash_files/promo2.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="bgcolor" value="#ffffff" />');
document.write('<embed src="flash_files/promo2.swf" quality="high" width="753" height="319" name="promo" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object>');
}

function InsertFlash2(){
document.write('            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="753" height="320">');
document.write('              <param name=movie value="promo2.swf">');
document.write('              <param name=quality value=high>');
document.write('              <embed src="promo2.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="753" height="320">');
document.write('              </embed> ');
document.write('            </object> ');
}

function InsertFlash3(){
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="753" height="319">');
document.write('<param name="movie" value="promo2.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="bgcolor" value="#ffffff" />');
document.write('<EMBED src="promo2.swf" quality="high" bgcolor=#FFFFFF  width="753" height="320" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED> ');
document.write('</object>');
}


function InsertFlash4(){
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="603" height="320">');
document.write('<param name="movie" value="pro7b.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="bgcolor" value="#ffffff" />');
document.write('<EMBED src="pro7b.swf" quality="high" bgcolor=#FFFFFF  width="603" height="320" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED> ');
document.write('</object>');
}

function InsertFlash5(){
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="753" height="319">');
document.write('<param name="movie" value="compact_mar08.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="bgcolor" value="#ffffff" />');
document.write('<EMBED src="compact_mar08.swf" quality="high" bgcolor=#FFFFFF  width="753" height="320" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED> ');
document.write('</object>');
}

function InsertFlash6(){
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="753" height="319">');
document.write('<param name="movie" value="compact_jan07_wppi.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="bgcolor" value="#ffffff" />');
document.write('<EMBED src="compact_jan07_wppi.swf" quality="high" bgcolor=#FFFFFF  width="753" height="320" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED> ');
document.write('</object>');
}

function InsertFlash7(){
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="753" height="319">');
document.write('<param name="movie" value="compact_jan07_wppi2.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="bgcolor" value="#ffffff" />');
document.write('<EMBED src="compact_jan07_wppi2.swf" quality="high" bgcolor=#FFFFFF  width="753" height="320" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED> ');
document.write('</object>');
}

function InsertFlash8(){
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="753" height="319">');
document.write('<param name="movie" value="compact_nov_08.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="bgcolor" value="#ffffff" />');
document.write('<EMBED src="compact_nov_08.swf" quality="high" bgcolor=#FFFFFF  width="753" height="320" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED> ');
document.write('</object>');
}

function xget(id) {
	if(document.getElementById) return document.getElementById(id);
	if(document.all) return document.all[id];
	return null;
}


  function makeHttpRequest(url, callback_function, return_xml,nnn) {
	  var http_request = false;

	  if (window.XMLHttpRequest) { // Mozilla, Safari,...
			http_request = new XMLHttpRequest();
			if (http_request.overrideMimeType && return_xml == 'xml') {
				 http_request.overrideMimeType('text/xml');
			}
	  } else if (window.ActiveXObject) { // IE
			try {
				 http_request = new ActiveXObject("Msxml2.XMLHTTP");
			} catch (e) {
				 try {
					  http_request = new ActiveXObject("Microsoft.XMLHTTP");
				 } catch (e) {}
			}
	  }

	  if (!http_request) {
			alert('Unfortunately your browser doesn\'t support this feature.');
			return false;
	  }

	  http_request.onreadystatechange = function() {
			if (http_request.readyState == 4) {
				 if (http_request.status == 200) {
					  if (return_xml == 'xml') {
							eval(callback_function + '(http_request.responseXML,\''+nnn+'\')');
					  } else {
							eval(callback_function + '(http_request.responseText,\''+nnn+'\')');
					  }
				 } else {
					  alert('There was a problem with the request. (Code: ' + http_request.status + ')');
				 }
			}
	  }
	  http_request.open('GET', url, true);
	  http_request.send(null);
  }
  
  function getTestimonial(stat,nnn) {
	var obj=document.getElementById('model'+nnn);
	while (obj.options.length>1)
		obj.remove(1);

	obj.options[0]=new Option("Please Wait!!!","");

	obj.selectedIndex=obj.options.length-1;
	obj.disabled=true;  
   makeHttpRequest('/products/checkProduct.asp?id_parent='+stat, 'displayTestimonial', 'text',nnn);
}

function displayTestimonial(text,nnn) {   
	obj=document.getElementById('model'+nnn);
	obj.disabled=false;
	obj.selectedIndex=obj.options.length-1;
	while (obj.options.length>1)
		obj.remove(1);   
	eval(text);		
}