var thisurl = location.href.substring(location.href.lastIndexOf("http://")+7, location.href.length); 
var colorstxt = thisurl.substring(0, thisurl.lastIndexOf('/'))+"/colors.txt";

	//Load in the first page of content by default
	function getContent(page){
	request.setHeader('Content-Type','application/x-www-form-urlencoded');
		new Ajax(page+'.php', {
            method: 'get',
            update: 'jax',
            evalScripts: true, 
		//onSuccess: function() {alert('hi');},
		onRequest: function() {},
		//onFailure: function() {alert('i');},
        onComplete:function() {dosifer();}
        }).request();
		acc.showThisHideOpen(99);
	}


// Name: Basic Hide Show
// --------------------------------------------------
function Hide(str) {
		x = document.getElementById(str);
		x.style.display = 'none';
		}
		
function Show(str) {
		x = document.getElementById(str);
		x.style.display = 'block';
		}
		
function img(imgid,path){
$(imgid).setProperty('src', path);	
}
		
function bkg(image,div) {
 newImage = "url("+image+")";
 document.getElementById(div).style.backgroundImage = newImage;
 }

// Name: blur Anchors
// Description: Remove anchor outlines from all links in the document
// --------------------------------------------------
function blurAnchors(){
if(document.getElementsByTagName) {
var a = document.getElementsByTagName("a");
//collect all anchors A
for(var i = 0; i < a.length; i++){
// mouse onfocus, blur anchors
a[i].onfocus = function(){this.blur();};
}
}
}


//  onload="fixPNG(this)"
var arVersion = navigator.appVersion.split("MSIE")
var version = parseFloat(arVersion[1])

function fixPNG(myImage) 
{
    if ((version >= 5.5) && (version < 7) && (document.body.filters)) 
    {
       var imgID = (myImage.id) ? "id='" + myImage.id + "' " : ""
	   var imgClass = (myImage.className) ? "class='" + myImage.className + "' " : ""
	   var imgTitle = (myImage.title) ? 
		             "title='" + myImage.title  + "' " : "title='" + myImage.alt + "' "
	   var imgStyle = "display:inline-block;" + myImage.style.cssText
	   var strNewHTML = "<span " + imgID + imgClass + imgTitle
                  + " style=\"" + "width:" + myImage.width 
                  + "px; height:" + myImage.height 
                  + "px;" + imgStyle + ";"
                  + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
                  + "(src=\'" + myImage.src + "\', sizingMethod='scale');\"></span>"
	   myImage.outerHTML = strNewHTML	  
    }
}


Window.onDomReady(function(){
	blurAnchors();
	// swf Object code here
   var yoyo = new SWFObject("top-ani01.swf", "mymovie", "770", "310", "8", "#336699");
   yoyo.addParam("quality", "high");
   yoyo.addParam("wmode", "transparent");
   yoyo.addParam("salign", "t");
   yoyo.write("flashcontent");
sIFR.replaceElement(named({sSelector:"h1", sFlashSrc:"futura.swf", sColor:"#ffffff", sLinkColor:"#000000", sBgColor:"#FFFFFF", sHoverColor:"#CCCCCC", nPaddingTop:0, nPaddingBottom:0, sWmode:"transparent", sFlashVars:"textalign=left&offsetTop=0"}));
sIFR.replaceElement(named({sSelector:"#copy h2", sFlashSrc:"futuraitalic.swf", sColor:"#fff6d6", sLinkColor:"#000000", sBgColor:"#FFFFFF", sHoverColor:"#CCCCCC", nPaddingTop:0, nPaddingBottom:0, sWmode:"transparent", sFlashVars:"textalign=left&offsetTop=0"}));
	

});

