<!--
function clearForm(f, isThis) {	
	f.value = (f.value==isThis) ? '' : f.value;
	f.style.color = '#000';
}


function initImage(imageId) { 
	image = document.getElementById(imageId);
	setOpacity(image, 0);
	image.style.visibility = 'visible';
	fadeIn(imageId,0);
}


function setOpacity(obj, opacity) {
	opacity = (opacity == 100)?99.999:opacity;

	// IE/Win
	obj.style.filter = "alpha(opacity:"+opacity+")";

	// Safari<1.2, Konqueror
	obj.style.KHTMLOpacity = opacity/100;

	// Older Mozilla and Firefox
	obj.style.MozOpacity = opacity/100;

	// Safari 1.2, newer Firefox and Mozilla, CSS3
	obj.style.opacity = opacity/100;
}

function fadeIn(objId,opacity) {
	if (document.getElementById) {
		obj = document.getElementById(objId);
		if (opacity <= 100) {
		  setOpacity(obj, opacity);
		  opacity += 10;
		  window.setTimeout("fadeIn('"+objId+"',"+opacity+")", 100);
		}
	}
}

function addLoadEvent(newonload) {
	if (typeof window.onload != 'function') {
		window.onload = newonload;
	} else {
		var oldonload = window.onload;
		window.onload = function() {
			oldonload();
			newonload();
		}
	}
}

// FLASH FUNCTIONS

	function flashInstalled() {
		var plugin = (navigator.mimeTypes && navigator.mimeTypes["appl.classion/x-shockwave-flash"]) ? navigator.mimeTypes["appl.classion/x-shockwave-flash"].enabledPlugin : 0;
		if(navigator.plugins && navigator.plugins.length) {
			operaplugin = navigator.plugins["Shockwave Flash"].description;
			operaversion = operaplugin.charAt(operaplugin.indexOf('.')-1);
		}else{
			operaversion = 0;
		}
		return ( operaversion > 7 || plugin  || (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0) ));
	}

	function displayFlash(obj, d) {
		switch(obj.type) {
			case 'h1' : link = "/images/shared/h1_title.swf?text_content=" + obj.copy; break;
			case 'h2' : link = "/images/shared/h2_title.swf?text_content=" + obj.copy; break;		
		}
		if (obj.w) link += "&width=" + obj.w;
		w = '100%';
		h = '28';

		content = "<div class=\"h1-flash\"><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\"" + w + "\" height=\"" + h + "\" id=\"copy\" align=\"middle\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"wmode\" value=\"transparent\" /><param name=\"movie\" value=\"" + link + "\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#ffffff\" /><embed src=\"" + link + "\" quality=\"high\" bgcolor=\"#ffffff\" width=\"" + w + "\" wmode=\"transparent\" height=\"" + h + "\" name=\"copy\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"appl.classion/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" /></object></div>";	

		return content;
	}


function onClickEvents() {
	var links = document.getElementsByTagName('a');
	for (var i=0; i<links.length; i++) {
	
		switch(links[i].rel) {
		case 'external':	links[i].onclick = function() {
							window.open(this.href, "_blank");
							return false;							
							}
							break;
							
		case 'launchWin':	links[i].onclick = function() {
							window.open(this.href, "_blank","height=800,width=600,status=no,scrollbars=yes, toolbar=no,menubar=no,location=no");
							return false;							
							}
							break;
							
		case 'imageSwitch':	links[i].onclick = function() {
							query = this.href.substring(this.href.indexOf('plink')+1, this.href.length);
							vars = query.split("/");
							
							mainImg.src = "/images/p/l/" + vars[2] + "/" + vars[3] + "/zoomImage.jpg";													
							
							return false;							
							}
							break;	
							
		case 'setPrice' :	links[i].onchange = function() { set_price(this.selectedIndex) };
							break;
							
		case 'sitemapOpen':	links[i].onclick = function() {
		
								d = document.getElementById('div-' + this.name);								
								d.style.display = (d.style.display =='none') ? '' : 'none';
								return false;
							};
							break;		
		}
	}
}



function setEvents() {

// flash headers
	gotFlash = (flashInstalled()) ? true : false;

	

// updateFormButtons


	var x = document.getElementsByTagName('input');
	
	for (var i=0; i<x.length; i++) {
		
		v = x[i];
		if (v.type=='submit') {
			v.style.backgroundColor = '#509D3E';
			v.style.color = '#000';
			v.style.fontFace = 'Verdana,Arial,Helvetica,sans-serif';
			v.style.fontSize = '10px';
		}
		
	} // end for

// cycle customonials
if (document.getElementById('customonial')) {
	count = 0;
	var myInterval = window.setInterval( function() { 
		i = 0;
		while(document.getElementById('cust-'+i)) {
			document.getElementById('cust-'+i).style.display = (count==i) ? '': 'none';	
			i++;
		}
		noOfCusts = i;
		
		count++;
		if (count >=noOfCusts) count = 0;
	
	},5000);
}

if (document.getElementById('feature-0')) {
	featureCount = 0;
	var myInterval = window.setInterval( function() { 
		i = 0;
		while(document.getElementById('feature-'+i)) {
			document.getElementById('feature-'+i).style.display = (featureCount==i) ? '': 'none';	
			i++;
		}
		noOfFeature = i;
		
		featureCount++;
		if (featureCount >=noOfFeature) featureCount = 0;
	
	},6000);
}

// onClickEvents

	onClickEvents();
	
} // end setEvents



addLoadEvent(setEvents);

var pageTracker = _gat._getTracker("UA-235717-7");
pageTracker._initData();
pageTracker._trackPageview();


//-->
