var button_path="./_img/button/";
var image_path="./_img/";
var tpl_path="./_img/tpl/";




<!--
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_nbGroup(event, grpName) { //v6.0
var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])?args[i+1] : img.MM_up);
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) { img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    nbArr = document[grpName];
    if (nbArr) for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
      nbArr[nbArr.length] = img;
  } }
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


function RAY_btnEffect(event,objId){
		//get object handle
		objHndl=document.getElementById(objId);		
		//mouse over effect
		if(event=="over" && objHndl){
			objHndl.style.color="#116621";
			objHndl.style.background="#79B179";
		}
		//mouse over effect
		if(event=="out" && objHndl){
			objHndl.style.color="#113121";
			objHndl.style.background="#455F45";
		}
		//mouse over effect
		if(event=="down" && objHndl){
			objHndl.style.color="#FFFF99";
			objHndl.style.background="#8CAF70";
		}
		//mouse over effect
		if(event=="up" && objHndl){
			objHndl.style.color="#FFFFFF";
			objHndl.style.background="#79B179";
		}
		
}
function RAY_getObject(objId){
		if(objId){
			return document.getElementById(objId);
		}
}
function RAY_loadUrl(urlString){
		if(urlString.length>3){
			location = urlString;
		}
}

//-->

//scroll bar

<!--

//We wrap all the code in an object so that it doesn't interfere with any other code
var scroller = {
 
  init:   function() {	
    //collect the variables
    scroller.docH = document.getElementById("content").offsetHeight;
    scroller.contH = document.getElementById("container").offsetHeight;
    scroller.scrollAreaH = document.getElementById("scrollArea").offsetHeight;
      
    //calculate height of scroller and resize the scroller div
    //(however, we make sure that it isn't to small for long pages)
    scroller.scrollH = (scroller.contH * scroller.scrollAreaH) / scroller.docH;
    //if(scroller.scrollH < 15) scroller.scrollH = 15;
    document.getElementById("scroller").style.height = Math.round(scroller.scrollH) + "px";
    
    //what is the effective scroll distance once the scoller's height has been taken into account
    scroller.scrollDist = Math.round(scroller.scrollAreaH-scroller.scrollH);
    
    //make the scroller div draggable
    Drag.init(document.getElementById("scroller"),null,0,0,-1,scroller.scrollDist);
    
    //add ondrag function
    document.getElementById("scroller").onDrag = function (x,y) {
      var scrollY = parseInt(document.getElementById("scroller").style.top);
      var docY = 0 - (scrollY * (scroller.docH - scroller.contH) / scroller.scrollDist);
      document.getElementById("content").style.top = docY + "px";
    }
  }
}


var ray={
	
	//show large size image
	showLargeImage:	function(objId){
		imgObj=ray.getObject(objId);	
		ray.loadUrl(imgObj.src+"&op=fullsize");
	},	//end of function showLargeImage
	
	//load url
	loadUrl: function(urlString){
		if(urlString.length>3){
			location = urlString;
		}	
	}, //end of funtion loadUrl
	
	//swap thumbnail image
	showThumbnail:	function(id,objId){
		imgObj=ray.getObject(objId);	
		imgObj.src=tpl_path+"thumbs_img_loading.jpg";
		imgObj.src="image.php?id="+id;
	},	//end of function showThumbnail
	
	//get objet by Id
	getObject: function(objId){
		if(objId){
			return document.getElementById(objId);
		}
	},
	
	//adjustThumbsTables
	adjustThumbsTables: function(){
		if(!document.styleSheets) return;
		
		if(document.styleSheets[0].cssRules){
			r=document.styleSheets[0].cssRules;
		}else if(document.styleSheets[0].rules){
			r=document.styleSheets[0].rules;						
		}	
		if(r){
			ray.clientW = document.body.clientWidth;
			for(i=0;i<r.length;i++){
				if(r[i].selectorText==".thumbs_table"){
					if(ray.clientW<900){
						r[i].style.width="190px";
					}else{
						r[i].style.width="240px";
					}
				}				
			}
		}
	},
	
	resizeCont: function(){
		//adjust document body
		ray.minRootWidth=750;
		ray.maxRootWidth=900;
		objRoot=document.getElementById("root");
		ray.clientW = document.body.clientWidth;
		if(ray.clientW > ray.maxRootWidth){
			objRoot.style.width=(ray.maxRootWidth)+"px";
			
		}else{
			objRoot.style.width=(ray.minRootWidth)+"px";
		}
		
		
		//adjust body with right pane
		objMain=document.getElementById("ray_body_main");
		objPane=document.getElementById("right_pane");
		
		//objMain.style.height="400px"
		ray.mainH = objMain.offsetHeight;
    	ray.paneH = objPane.offsetHeight;
		//alert(ray.mainH + " :: " +ray.paneH);
		if(ray.mainH<ray.paneH){
			objMain.style.height=ray.paneH+"px";
		}else{
			objPane.style.height=ray.mainH+"px";
		}	
	},
	
	Status:new Object,
	statusAnimation: function(){
		ray.Status.message   = "Welcome to www.utopia-con.com^" +
								"Be ensured ....^" +
								"Please use 1024 x 780 screen resolution for better effect.^" +
								"Macromedia flash plugin is needed for this site.^" +
								"Thank you!^" +
								"^"
	  ray.Status.Speed = 25
	  ray.Status.lineDelay   = 1500
	  // Do not change the text below //
	  ray.Status.txt   = ""
	  ray.statusText(0);
	},
	
	statusText: function (pos) {
		if (ray.Status.message.charAt(pos) != '^') {
		  ray.Status.txt    = ray.Status.txt + ray.Status.message.charAt(pos)
		  window.status = ray.Status.txt
		  pauze  = ray.Status.scrollSpeed
		}
		else {
		  pauze = ray.Status.lineDelay
		  ray.Status.txt   = ""
		  if (pos == ray.Status.message.length-1) pos = -1
		}
		pos++
		setTimeout("ray.statusText('"+pos+"')",pauze)
	},
	
	
	onresizeEvent: function(){
		//ray.resizeCont();
		//ray.adjustThumbsTables();		
	},
	
	onloadEvent: function(){
			//ray.resizeCont();
			//ray.adjustThumbsTables();
			ray.statusAnimation();
			MM_preloadImages(tpl_path+'arrow_black.gif',tpl_path+'arrow-downright_green.gif',tpl_path+'button_left.gif',tpl_path+'button_right.gif',tpl_path+'button_grad.gif',tpl_path+"thumbs_img_loading.jpg");
	}
}


// Unhide -->