function setLang(code, mn_id) {
	var setLangObj = new langs();
	setLangObj.setLang(code, mn_id);
	
	self.location = "/";
}

function imgPreloader() 
{
     var i = 0;
     imageObj = new Image();
     
	 images = new Array();
	 images[0]="/inc/img/color_right_img_yellow.jpg";
	 images[1]="/inc/img/color_right_img_orange.jpg";
	 images[2]="/inc/img/color_right_img_purple.jpg";
	 images[3]="/inc/img/color_right_img_white.jpg";
	 images[4]="/inc/img/color_right_img_pink.jpg";
	 images[5]="/inc/img/color_right_img_red.jpg";
	 
	 ximages = new Array();
	 ximages[0]="/inc/img/color_left_img_yellow.jpg";
	 ximages[1]="/inc/img/color_left_img_orange.jpg";
	 ximages[2]="/inc/img/color_left_img_purple.jpg";
	 ximages[3]="/inc/img/color_left_img_white.jpg";
	 ximages[4]="/inc/img/color_left_img_pink.jpg";
	 ximages[5]="/inc/img/color_left_img_red.jpg";
	 
     for (i=0; i<=5; i++){
	 	imageObj.src = images[i];
		imageObj.src = ximages[i];
	}
	alert("Preloading done.");
} 

function changeColor(color) {
	var i, a, main;
	
	for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    	if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
       		a.disabled = true;
       		if(a.getAttribute("title") == color) a.disabled = false;
     	}
   	}
}

function setColor(color) {
    var setColorObj = new langs();
	setColorObj.setColor(color);
}