var Cruiz = new function() {}

Cruiz.init = function(sBaseDir) {
	if(typeof sIFR == "function"){
		/*
			sSelector: #foo>p,#foo>a
			sFlashSrc
			sColor
			sLinkColor
			sHoverColor
			sBgColor
			nPaddingTop
			nPaddingRight
			nPaddingBottom
			nPaddingLeft
			sFlashVars: 
				 textalign=center
				&offsetLeft=5
				&offsetTop=5
				&underline=true
			sCase:	upper/lower
			sWmode:	transparent 
		*/
//		sIFR.replaceElement(named({
//			 sSelector:	"#menu>li"
//			,sFlashSrc:	sBaseDir+"/style/lucida.swf" // sjeiti.swf cloisterblack.swf cooper.swf kabel.swf jungle.swf writers.swf tagster.swf
//			,sColor:	"#000000"
//			,sWmode:	"transparent"
//			,sHoverColor: "#D70303"
//			,sFlashVars: "textalign=center&offsetTop=5&iFontsize=16"
//			,sCase:	"upper"
//			,nPaddingTop: 5
//			,nPaddingRight: 5
//			,nPaddingBottom: 5
//			,nPaddingLeft: 5
//		}));
//		sIFR.replaceElement(named({
//			 sSelector:"li.page_item>a"	 
//			,sFlashSrc:sBaseDir+"/style/cooper.swf"
//			,sColor:"#32587D"
//			,sWmode:"transparent"
//		}));

//		sIFR.replaceElement(named({
//			 sSelector:"h3.chat"	 
//			,sFlashSrc:"style/cooper.swf"
//			,sColor:"#32587D"
//			,sWmode:"transparent"
//			,nPaddingRight: 30
//			,nPaddingBottom: 5
//			,nPaddingLeft: 30
//		}));
	}
}

Cruiz.fullscreen = function(url,playheadtime) {
	sx = screen.availWidth;
	sy = screen.availHeight;
	fsWin = window.open("fullscreen.php?url=" + url + "&playheadtime=" + playheadtime,"fsvideo","width=" + sx + ",height=" + sy + ",menubar=no,toolbar=no,status=no,resizable=yes");
}

Cruiz.asdf = function(sAlert) {
	alert(sAlert);
}
