﻿function title(obj)
{
	var me = document.body.id;
	if(me == 'index')
	{document.getElementById('house').src = "images/house-ac.gif";}
	else if(me == 'help')
	{document.getElementById('mhelp').src = "images/ac-2.gif";}
	else if(me == 'prize')
	{document.getElementById('mprize').src = "images/ac-3.gif";}
}
function actimg(obj)
{
	var me = document.body.id;
	if(obj == 'house')
		{
			if(me == 'index')
			{}
			else
			{document.getElementById('house').src = "images/house-ac.gif";}
		}
	else if(obj == 'beauty')
		{
			if(me == 'help')
			{}
			else
			{document.getElementById('beauty').src = "images/beauty-ac.gif";}
		}
	else if(obj == 'fashion')
		{
			if(me == 'prize')
			{}
			else
			{document.getElementById('fashion').src = "images/fashion-ac.gif";}
		}
			else if(obj == 'health')
		{
			if(me == 'prize')
			{}
			else
			{document.getElementById('health').src = "images/health-ac.gif";}
		}
			else if(obj == 'design')
		{
			if(me == 'prize')
			{}
			else
			{document.getElementById('design').src = "images/design-ac.gif";}
		}
			else if(obj == 'buy')
		{
			if(me == 'prize')
			{}
			else
			{document.getElementById('buy').src = "images/buy-ac.gif";}
		}
			else if(obj == 'money')
		{
			if(me == 'prize')
			{}
			else
			{document.getElementById('money').src = "images/money-ac.gif";}
		}
			else if(obj == 'career')
		{
			if(me == 'prize')
			{}
			else
			{document.getElementById('career').src = "images/career-ac.gif";}
		}
			else if(obj == 'restau')
		{
			if(me == 'prize')
			{}
			else
			{document.getElementById('restau').src = "images/restau-ac.gif";}
		}
			else if(obj == 'holiday')
		{
			if(me == 'prize')
			{}
			else
			{document.getElementById('holiday').src = "images/holiday-ac.gif";}
		}
			else if(obj == 'childre')
		{
			if(me == 'prize')
			{}
			else
			{document.getElementById('childre').src = "images/children-ac.gif";}
		}
			else if(obj == 'wish')
		{
			if(me == 'prize')
			{}
			else
			{document.getElementById('wish').src = "images/wishlist-ac.gif";}
		}
}
function dactimg(obj)
{
	var me = document.body.id;
	if(obj == 'house')
		{
			if(me == 'index')
			{}
			else
			{document.getElementById('house').src = "images/house-de.gif";}
		}
	else if(obj == 'beauty')
		{
			if(me == 'help')
			{}
			else
			{document.getElementById('beauty').src = "images/beauty-de.gif";}
		}
	else if(obj == 'fashion')
		{
			if(me == 'prize')
			{}
			else
			{document.getElementById('fashion').src = "images/fashion-de.gif";}
		}
			else if(obj == 'health')
		{
			if(me == 'prize')
			{}
			else
			{document.getElementById('health').src = "images/health-de.gif";}
		}
			else if(obj == 'design')
		{
			if(me == 'prize')
			{}
			else
			{document.getElementById('design').src = "images/design-de.gif";}
		}
			else if(obj == 'buy')
		{
			if(me == 'prize')
			{}
			else
			{document.getElementById('buy').src = "images/buy-de.gif";}
		}
			else if(obj == 'money')
		{
			if(me == 'prize')
			{}
			else
			{document.getElementById('money').src = "images/money-de.gif";}
		}
			else if(obj == 'career')
		{
			if(me == 'prize')
			{}
			else
			{document.getElementById('career').src = "images/career-de.gif";}
		}
			else if(obj == 'restau')
		{
			if(me == 'prize')
			{}
			else
			{document.getElementById('restau').src = "images/restau-de.gif";}
		}
			else if(obj == 'holiday')
		{
			if(me == 'prize')
			{}
			else
			{document.getElementById('holiday').src = "images/holiday-de.gif";}
		}
			else if(obj == 'childre')
		{
			if(me == 'prize')
			{}
			else
			{document.getElementById('childre').src = "images/children-de.gif";}
		}
			else if(obj == 'wish')
		{
			if(me == 'prize')
			{}
			else
			{document.getElementById('wish').src = "images/wishlist-de.gif";}
		}
}


 

 

//for div

defaultStep=1 

step=defaultStep 

 

function scrollDivDown(id){

//alert(id)

clearTimeout(timerDown) 

document.getElementById(id).scrollTop+=step 

timerDown=setTimeout("scrollDivDown('"+id+"')",10)

 

} 

 

function scrollDivUp(id){

//alert(id)

clearTimeout(timerUp)

document.getElementById(id).scrollTop-=step 

timerUp=setTimeout("scrollDivUp('"+id+"')",10)

} 

 

timerDown="" 

timerUp="" 

 

function stopMe(){

clearTimeout(timerDown) 

clearTimeout(timerUp)

}

function getloading(obj)
{
      document.getElementById("loading1").style.display="block";
        //setTimeout("getloading()",65);
  }
function showmovie(AppPath)
{
    document.getElementById("div_big_img").style.display="none";
    document.getElementById("div_big_mv").style.display="block";
    document.getElementById("div_movie").style.display="block";
    document.getElementById("div_img").style.display = "none";
    
    document.getElementById("img_movie").setAttribute("src", AppPath+"images/movie_ac.png");
    document.getElementById("img_image").setAttribute("src", AppPath + "images/images_dc.png");
    
    document.getElementById("img_movie").onmouseover = "";
    document.getElementById("img_movie").onmouseout = "";
    document.getElementById("img_image").onmouseover = function() { document.getElementById("img_image").setAttribute("src", AppPath + "images/images_ac.png"); }
    document.getElementById("img_image").onmouseout = function() { document.getElementById("img_image").setAttribute("src", AppPath + "images/images_dc.png"); }
}
function showimage(AppPath)
{
    document.getElementById("div_big_img").style.display="block";
    document.getElementById("div_big_mv").style.display="none";
    document.getElementById("div_movie").style.display="none";
    document.getElementById("div_img").style.display="block";

    document.getElementById("img_movie").setAttribute("src",  AppPath+"images/movie_dc.png");
    document.getElementById("img_image").setAttribute("src",AppPath+ "images/images_ac.png");
   
    document.getElementById("img_image").onmouseover = "";
    document.getElementById("img_image").onmouseout = "";

    document.getElementById("img_movie").onmouseover = function() { document.getElementById("img_movie").setAttribute("src", AppPath + "images/movie_ac.png"); }
    document.getElementById("img_movie").onmouseout = function() { document.getElementById("img_movie").setAttribute("src", AppPath + "images/movie_dc.png"); }
}
function ViewLargeProjectImage(imageid,img_project,AppPath)
{
    document.getElementById(img_project).src =AppPath+"ProjectImage/"+ imageid;
}
function ViewLargeNewsImage(imageid,img_project,AppPath)
{
    document.getElementById(img_project).src =AppPath+"NewsImage/"+ imageid;
}
function ViewLargeSustainabilityImage(imageid, img_project, AppPath) {
    document.getElementById(img_project).src = AppPath + "SustainabilityImage/" + imageid;
}
function showactmv(AppPath) {
    document.getElementById("img_movie").setAttribute ("src",AppPath+ "images/movie_ac.png");
}
function showdeactmv(AppPath) {
    document.getElementById("img_movie").setAttribute("src", AppPath + "images/movie_dc.png");
}

function showactimg(AppPath) {
    document.getElementById("img_image").setAttribute("src", AppPath + "images/images_ac.png");
}
function showdeactimg(AppPath) {
    document.getElementById("img_image").setAttribute("src", AppPath + "images/images_dc.png");
}