/********************************
 * DATE: 2009-07-03 (15:30)
 ********************************/ 
var _version_="1.0.6.4";var currentServer=document.location.host;currentServer="www.mocito.com";var gaJsHost=(("https:"==document.location.protocol)?"https://ssl.":"http://www.");var gSource=unescape("%3Cscript src='"+gaJsHost+"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E");document.write(gSource);googleGuide={gID:"UA-3174946-1",track:function(_VALUE_){_VALUE_=(!_VALUE_)?"":_VALUE_;var pageTracker=_gat._getTracker(this.gID);pageTracker._initData();pageTracker._trackPageview(_VALUE_)}};function embedJS(_file){var exJSPath="/user_content/external_js/";var _httpProt_=(("https:"==document.location.protocol)?"https://":"http://");var _httpHost_=_httpProt_+currentServer;var jsFile=_httpHost_+exJSPath+_file;var jsLink=unescape("%3Cscript src='"+jsFile+"' type='text/javascript'%3E%3C/script%3E");document.write(jsLink)};try{var prototypeInstalled=Prototype.Version+" allready installed on page"}catch(error){embedJS("prototype.js");var prototypeInstalled="Prototype JS added"};try{if(Effect)var scriptaculousEffects="Script.aculo.us 'Effects' allready installed on page"}catch(error){embedJS("scriptaculous/effects.js");var scriptaculousEffects="Script.aculo.us 'Effects JS' added"};try{if(Droppables)var scriptaculousDragDrop="Script.aculo.us 'Drag n Drop' allready installed on page"}catch(error){embedJS("scriptaculous/dragdrop.js");var scriptaculousDragDrop="Script.aculo.us 'Drag n Drop JS' added"};var _guide={gVersion:_version_,gServer:document.location.protocol+"\/\/"+currentServer,gScriptPath:"\/user_content\/yourguide\/",gScriptName:"mocitoguide.php",googleTrack:function(_VALUE_){googleGuide.track("yourGuide embed on:'"+document.location.host+"'")},gWidth:"320",gHeight:"240",gPosX:"",gPosY:"",gLayer:"yourGuideLayer",dragable:true,dragImage:"drag_image01.gif",gID:"",gVideoID:"",minWidth:"125",minHeight:"75",gWatermark:true,gBottomBorder:"0",gRepeat:"0",gLoadAnim:true,_debug:false,_showVersion:false,showBar:function(s){if(s)$('topBar').style.visibility="visible";else $('topBar').style.visibility="hidden"},makeDragable:function(s){if(s){this.guideDrag=new Draggable('guideLayer',{starteffect:"",endeffect:"",scroll:window})}else this.guideDrag.destroy()},setGServer:function(_server_){this.gServer=_server_},getGServer:function(){return this.gServer},getGScriptPath:function(){return this.gScriptPath},getGScriptName:function(){return this.gScriptName},getGScriptURL:function(){return this.getGServer()+this.getGScriptPath()+this.getGScriptName()},setGID:function(_ID_){this.gID=_ID_},guideID:function(_ID_){this.setGID(_ID_)},guide_id:function(_ID_){this.setGID(_ID_)},getGID:function(){return this.gID},setGVideoID:function(vid){this.gVideoID=vid},videoID:function(vid){this.setGVideoID(vid)},video_id:function(vid){this.setGVideoID(vid)},getGVideoID:function(){return this.gVideoID},activateWatermark:function(){this.gWatermark=true},deactivateWatermark:function(){this.gWatermark=false},getWatermark:function(){return this.gWatermark},activateLoadAnim:function(){this.gLoadAnim=true},deactivateLoadAnim:function(){this.gLoadAnim=false},getLoadAnim:function(){return this.gLoadAnim},setBottomBorder:function(width){this.gBottomBorder=width},getBottomBorder:function(){return this.gBottomBorder},setRepeatAfterTime:function(hours){this.gRepeat=hours},getRepeatAfterTime:function(){return this.gRepeat},setGPosX:function(x){this.gPosX=x},leftPos:function(x){this.setGPosX(x)},getGPosX:function(){if(this.gPosX)return"left:"+this.gPosX+"px;";else return""},getGPosLeft:function(){return this.getGPosX()},setGPosY:function(y){this.gPosY=y},topPos:function(y){this.setGPosY(y)},getGPosY:function(){if(this.gPosY)return"top:"+this.gPosY+"px;";else return""},getGPosTop:function(){return this.getGPosY()},setGSizeWidth:function(_width){this.gWidth=_width},getGSizeWidth:function(){return this.gWidth},setGSizeHeight:function(_height){this.gHeight=_height},getGSizeHeight:function(){return this.gHeight},setSize:function(width,height){this.setGSizeWidth(width);this.setGSizeHeight(height)},setDragable:function(_state){this.dragable=_state},dragable:function(_state){this.setDragable(_state)},getDragable:function(){return this.dragable},isDragable:function(){if(this.getDragable()!=false)return true;else return false},setDragImage:function(_image){this.dragImage=_image},getDragImage:function(){return this.dragImage},getDragImageURL:function(){return this.getGServer()+this.getGScriptPath()+"images/"+this.getDragImage()},setMinWidth:function(_value){this.minWidth=_value},setMinHeight:function(_value){this.minHeight=_value},getMinWidth:function(){return this.minWidth},getMinHeight:function(){return this.minHeight},writeFlashObj:function(flvObj){if(!flvObj){flvObj="<div ID='guideLayer'";if(this.isDragable()){flvObj+=" onMouseOver='_guide.showBar(true)' ";flvObj+=" onMouseOut='_guide.showBar(false)' "};flvObj+=" style='position:absolute; "+this.getGPosX()+" "+this.getGPosY()+"'>\n";if(this.isDragable()){flvObj+="<div ID='topBar' onMouseDown='_guide.makeDragable(true)' onMouseUp='_guide.makeDragable(false)' style='visibility:hidden; cursor:move; height:20px; width:125px; position:relative; top:5px;'>\n";flvObj+="<div style='background:url("+this.getDragImageURL()+") no-repeat center; height:20px; width:125px;'></div>\n";flvObj+="</div>\n"};flvObj+="<object id='WebGuidePlayer' \n"+" width="+this.getGSizeWidth()+"\n"+" height="+this.getGSizeHeight()+"\n"+" type='application/x-shockwave-flash'\n"+" data='"+this.getGScriptURL()+"'>\n"+" <param name='movie' value='"+this.getGScriptURL()+"' />\n"+" <param name='wmode' value='transparent' />\n"+" <param name='allowScriptAccess' value='always' />\n"+" <param name='FlashVars' value='show_anim="+this.getLoadAnim()+"&repeat="+this.getRepeatAfterTime()+"&border="+this.getBottomBorder()+"&button_time=1&watermark="+this.getWatermark()+"&verbose=0&show_idle=0&guide_id="+this.getGID()+"&video_id="+this.getGVideoID()+"' />\n"+" </object>\n";if(this._showVersion){flvObj+="<br />"+"<center>"+"<span style='font-size:7pt;color:#AAAAAA;font-weight:bold;font-family:verdana'>"+"Version: "+this.gVersion+"</span>"+"</center>"};flvObj+="</div>\n"};if(this._debug){var debugMsg="DEBUG:\n\n";debugMsg+="WebGuide Version: "+this.gVersion;debugMsg+="\n\n";debugMsg+="MOC_SERVER: "+this.getGServer();debugMsg+="\n";debugMsg+="Include HOST: "+document.location.protocol+"//"+currentServer;debugMsg+="\n\n";debugMsg+="JavaScript includes:\n";debugMsg+=" - "+prototypeInstalled+"\n";debugMsg+=" - "+scriptaculousEffects+"\n";debugMsg+=" - "+scriptaculousDragDrop+"\n";debugMsg+="\n\n";debugMsg+="WebGuide Source:\n\n";debugMsg+=flvObj;alert(debugMsg)}$(this.gLayer).innerHTML=flvObj},minimizePlayer:function(_newWidth,_newHeight){_newWidth=(!_newWidth)?this.getMinWidth():_newWidth;_newHeight=(!_newHeight)?this.getMinHeight():_newHeight;$('WebGuidePlayer').style.height=_newHeight-20+"px";$('WebGuidePlayer').style.width=_newWidth-20+"px"},maximizePlayer:function(){$('WebGuidePlayer').style.height=this.getGSizeHeight()+"px";$('WebGuidePlayer').style.width=this.getGSizeWidth()+"px"},init:function(_layer){(_layer)?this.gLayer=_layer:"";this.googleTrack();this.writeFlashObj()},showVersion:function(){this._showVersion=true},Debug:function(){this._debug=true}};