/*
 * IdeaValley Innovation
 * FlipSite
 * Maio 2006
 * Luiz Paulo dos Prazeres Júnior
 * 
 * FlipToolBar Class
 */
 
var FlipToolBarPath 	= toolsPath+"flipToolBar/";
var FlipToolBarClass	= Class.create();

FlipToolBarClass.prototype = {

	initialize: function () {
	
	
	$("divBemVindo").style.display = (typePlayer == "single") ? "none" : "block";
	
		//flipAjax.request(FlipToolBarPath+"/flipToolBar.php", "themePath="+themePath, "post", this.initToolBar);
	
	this.setActions();
	
	}, //Method initialize


	setActions: function (){

	    origem = (getQueryString("origem")) ? "&origem="+getQueryString("origem") : "";

	    $("btnModoCompleto").onclick = function () { page = (typePlayer == "single") ? StateMachine.getPage() : StateMachine.getPageLeft(); if(typePlayer != "double") document.location = "index.php?playerType=double&idEdicao="+idEdicaoXml+"&idCaderno="+idCaderno+"&page2go="+page+origem; return false; };
	    $("btnModoSimples").onclick  = function () { page = (typePlayer == "single") ? StateMachine.getPage() : StateMachine.getPageLeft(); if(typePlayer != "single") document.location = "index.php?playerType=single&idEdicao="+idEdicaoXml+"&idCaderno="+idCaderno+"&page2go="+page+origem; return false; };


	}, //Method setActions


	initToolBar: function (returnString, status) {

		if(status == "sucess"){
			newComponent(returnString, "top", $("displayToolBar"));
			includeToolBar.include();
		}

	}, //Method initToolBar


	end: function (){

	} //Method end

};

FlipToolBar = new FlipToolBarClass();