// SeeCreature Design V 1.0
// Prtotosite, 07.19.06
function showHide(id){
			el = document.getElementById(id);
			el.style.display = (el.style.display == 'block')? 'none' : 'block';
		}

function Feedback ( email, domain, emailSubject, pageTitle ) 
{
	
	document.writeln ( ' <a href="mailto:' + email + '@' + domain + '?subject=' + emailSubject + ' ' + pageTitle + '">' +'<img src="/assets/images/protosite/btn_feeback.gif" />' +'</a>')
}

FlashObject = 
{
	writeObject: function( url, w, h, bg, trans, altImage, altLink, menu, nav )
	{
		if ( trans )	{	var trans = 'transparent';		} else {			var trans = 'window';		}
		if ( menu )		{	var menu = 'true';				} else {			var menu = 'false';			}
		document.writeln( '<object type="application/x-shockwave-flash" data="' + url + '" width="' + w + '" height="' + h + '">' );
		document.writeln( '<param name=quality value=high>' );
		document.writeln( '<param name=wmode value="' + trans + '">' );
		document.writeln( '<param name=menu value="' + menu + '">' );
		document.writeln( '<param name=movie value="' + url + '">' );
		if ( bg != null ) {
			document.writeln( '<param name=bgcolor value=#' + bg + '>' );
		}
		if ( nav ) {
			document.writeln( altNav );//this is a altNav in case of no flash
		} else {
			if ( !altLink ) {
				document.writeln( '<img src="/assets/images/' + altImage + '" />' );
			} else {
				document.writeln( '<a href="' + altLink + '"><img src="/assets/images/' + altImage + '" /></a>' );
			}
		}
		document.writeln( '</object>' );
	},
	priceLink: function( price, color, width )
	{
		this.writeObject( '/assets/flash/price.swf?priceset=' + escape( price ) + '&color=' + escape( color ), 162, 30, true );
	}
}

function openNewWindow(theURL, winName, winWidth, winHeight){
	var width
	var height
	var leftdist
	var topdist
	width = screen.width;
	height = screen.height;
	leftdist = Math.round((width - winWidth) / 2);
	topdist = Math.round((height - winHeight) / 2);
	window.open(theURL, winName,'width='+winWidth+',height='+winHeight+',top='+topdist+',left='+leftdist+',noresize,resize=0,menubar=0,location=0,scrollbars=0')
	}

function closeWindow(){
	window.close;
	}