/*
#############################################################################
#				Aniglyphics.Com JavaScript Functions Document				#
#				Created On:12/28/2005										#
#				Created By: Matthew Parker									#		
#				Last Modified: ---											#
#				Modified By: ---											#
#############################################################################
*/

function openCreative(){
	
	w=800;
	h=600;
	
	if (window.screen) {
	   w = window.screen.availWidth;
	   h = window.screen.availHeight;
	}
	window.open('http://creative.aniglyphics.com/','creative','width='+w+',height='+h+',top=0,left=0');

}

function popLiveHelp(){
	url = "http://www.aniglyphics.net/live/request_email.php?l=aniglyphics&x=1&deptid=2";
	newwindow=window.open(url,'LiveSupport','left=0,top=0');
	if (window.focus) {
		newwindow.focus();
	}
}

function popTradeShow(){
	url = "http://www.aniglyphics.com/trade-show-media-kit.php";
	eval("newwindow=window.open(url,'TradeShow','toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=0,width=750,height=400');");
	if (window.focus) {
		newwindow.focus();
	}
}

function loadSWF(color, swf){
	if(window.flashHeader){
		window.document["flashHeader"].SetVariable("_root.theColor", color);
		window.document["flashHeader"].SetVariable("_root.theSwf", swf);
	}
	if(document.flashHeader){
		//window.document["flashHeeder"].SetVariable("_root.theColor", color);
		//window.document["flashHeeder"].SetVariable("_root.theSwf", swf);		
		//document.getElementById('flashHeader').SetVariable("_root.theColor", color);
		//document.getElementById('flashHeader').SetVariable("_root.theSwf", swf);
		document.flashHeader.SetVariable("_root.theColor", color);
		document.flashHeader.SetVariable("_root.theSwf", swf);
	}
	//document.getElementById('flashHeader').SetVariable("_root.theColor", color);
	//document.getElementById('flashHeader').SetVariable("_root.theSwf", swf);
}
