/**
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

function bgcolorChange(){
	$("div#top").css("background", "#dee");
	$("div#top").css("color", "#388");
}

function bgcolorReset(){
	$("div#top").css("background", "#fff");
	$("div#top").css("color", "#666");
}

/**
 * 下メニューの名前変更関数
 */
function renameTop(){
	$("li#top a").html("トップ");
	$("li#top a").css("background", "orange");
}
function returnNmTop(){
	setTimeout( function(){
		$("li#top a").html("Top");
		$("li#top a").css("background", "white");
		clearTimeout();
	}, 500);
}

function renameConcept(){
	$("li#concept a").html("コンセプト");
	$("li#concept a").css("background", "orange");
}
function returnNmConcept(){
	setTimeout( function(){
		$("li#concept a").html("Concept");
		$("li#concept a").css("background", "white");
		clearTimeout();
	}, 500);
}

function renameProcess(){
	$("li#process a").html("プロセス");
	$("li#process a").css("background", "orange");
}
function returnNmProcess(){
	setTimeout( function(){
		$("li#process a").html("Process");
		$("li#process a").css("background", "white");
		clearTimeout();
	}, 500);
}

function renameGallary(){
	$("li#gallary a").html("ギャラリー");
	$("li#gallary a").css("background", "orange");
}
function returnNmGallary(){
	setTimeout( function(){
		$("li#gallary a").html("Gallary");
		$("li#gallary a").css("background", "white");
		clearTimeout();
	}, 500);
}

function renameCompany(){
	$("li#company a").html("カンパニー");
	$("li#company a").css("background", "orange");
}
function returnNmCompany(){
	setTimeout( function(){
		$("li#company a").html("Company");
		$("li#company a").css("background", "white");
		clearTimeout();
	}, 500);
}

/**
 * get値の値取得
 */
function getRequest() {
	if (location.search.length > 1) {
		var get = new Object();
		var ret = location.search.substr(1).split("&");
		for ( var i = 0; i < ret.length; i++) {
			var r = ret[i].split("=");
			get[r[0]] = r[1];
		}
		return get;
	} else {
		return false;
	}
}
function getUrlVars() 
{ 
    var vars = [], hash; 
    var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); 
    for(var i = 0; i < hashes.length; i++) { 
        hash = hashes[i].split('='); 
        vars.push(hash[0]); 
        vars[hash[0]] = hash[1]; 
    } 
    return vars; 
}

