

var arrPreImg=new Array();
var arrPreObj=new Array();
var arrId=new Array();
var strPath="assets/images/";

function tmp_swap_img(strId)
	{
		objTarget=objDoc.get_img(strId);
		tmpSrc=objTarget.src;
		objTarget.src=objTarget.oSrc;
		objTarget.oSrc=tmpSrc;
		objTitle=objDoc.get_img('slogantitle');
		if (!objTitle.oSrc)
			{
				objTitle.oSrc=objTitle.src;
				objTitle.src="assets/images/titles/"+strId+".gif";
			}else{
				objTitle.src=objTitle.oSrc;
				objTitle.oSrc=null;
			}
	}

function dum_swap_img(strId)
	{
		return false;
	}

function set_load()
	{
		var j=arrPreImg.length;
		for(var i=0; i<arguments.length; i++) 
			{
				arrId[j]=arguments[i];
				arrPreImg[j++]=strPath+"o-"+arguments[i]+".gif";
			}
	}

function preload()
	{
		//debug height types
		/*objDiv=objDoc.get_layer("content");
		strHeight="";
		strHeight=strHeight+"offsetHeight: "+objDiv.offsetHeight;
		strHeight=strHeight+"\nscrollHeight: "+objDiv.scrollHeight;
		strHeight=strHeight+"\nheight: "+objDiv.height;
		strHeight=strHeight+"\nstyle.height: "+objDiv.style.height;
		strHeight=strHeight+"\nstyle.Height: "+objDiv.style.Height;
		alert(strHeight);*/
		objD=document;
		objD.preImg=new Array();
		j=arrPreImg.length;
		for(var i=0; i<j; i++) 
			{
				objD.preImg[i]=new Image();
				objD.preImg[i].src=arrPreImg[i];
				objD.preImg[10+i]=new Image();
				objD.preImg[10+i].src="assets/images/titles/"+arrId[i]+".gif";
			}
		arrPreImg=null;
		for(var i=0; i<j; i++) 
			{	
				objImg=objDoc.get_img(arrId[i]);
				objImg.oSrc=objD.preImg[i].src;
			}
		swap_img=tmp_swap_img;
	}
swap_img=dum_swap_img;


