function alterNate(elm){
	if (!elm.base) elm.base = elm.value
	if (elm.value == elm.base) elm.value = "";
	else if (elm.value == "") elm.value = elm.base;
}

function dialog(url, w, h) {
	if (!w) w = 400;
	if (!h) h = 400;

	showModalDialog( url, top.window, 'dialogHeight: '+h+'px; dialogWidth: '+w+'px; center: yes; dialogHide: no; edge: sunken; help: off; resizable: on; status: no; unordered: off;' );
}

function change_img(img){
	document.all.srcimg.src = img;
	return void(0);
}

function wo(url, imgw, imgh, scrol) {
	var W = 100;
	var H = 100;
	var res = 'no'
	var poss = '';
	var scr = 'no';

		if (imgw) W = imgw;
		if (imgh) H = imgh;
		if (scrol) scr = 'yes';

	x = (window.screen.width - W)/2;
	y = (window.screen.height - H)/2 - 150;
	poss = ',left='+x+', top='+y;

	var w = window.open( url , "_blank", 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars='+scr+', resizable='+res+',width='+W+',height='+H+poss);
}

function go(url) {
	if (!url) url = window.location.href;
	window.location.href = url;
}

function formHandler(form){
	var URL = '?brand_id=' + document.form.brand.options[document.form.brand.selectedIndex].value;
	window.location.href = URL;
}


function flashObj(src, w, h, bgcolor, base, wmode) {
	if (!src) return false;
	w = parseInt(w);
	h = parseInt(h);

	if (!w || !h) return false;
	if (!bgcolor) bgcolor = '#ffffff';
	if (!base) base = '';
	if (!wmode) wmode = 'window';

	var tag = '';

	tag += '<object width="'+w+'" height="'+h+'" codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">';
	tag += '<param name="FlashVars" value="">';
	tag += '<param name="Movie" value="'+src+'">';
	tag += '<param name="Src" value="'+src+'">';
	tag += '<param name="wmode" value="transparent">';
	tag += '<param name="Play" value="1">';
	tag += '<param name="Loop" value="-1">';
	tag += '<param name="Quality" value="High">';
	tag += '<param name="Menu" value="0">';
	tag += '<param name="Base" value="'+base+'">';
	tag += '<param name="Scale" value="ShowAll">';
	tag += '<param name="DeviceFont" value="-1">';
	tag += '<param name="EmbedMovie" value="0">';
	tag += '<param name="BGColor" value="'+bgcolor+'">';
	tag += '<embed src="'+src+'" menu="false" quality="high" bgcolor="'+bgcolor+'" width="'+w+'" height="'+h+'" wmode="'+wmode+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>';
	tag += '</object>';

	document.write(tag);
}

function set_currency(obj,surl){
	var URL = surl + '&set_currency=' + obj.options[obj.selectedIndex].value;
	window.location.href = URL;
}

var img_path = '/include_design/site_images/';

function swap_img_on(img, imgs) {
	document.getElementById(img).src=img_path + imgs;
}

function swap_img_out(img, imgs) {
	document.getElementById(img).src=img_path + imgs;
}
