function movepic(img_name,img_src) {
	document[img_name].src=img_src;
}

function changepage(location) {
	var selObj = document.getElementById('selectpagenum');
	var selIndex = selObj.selectedIndex;
	document.location.href= location + selObj.options[selIndex].value;
}

function fbs_click() {
	u=location.href;
	t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
	return false;
}

function fbs_click_pic(src) {
	u=location.href;
	t=document.title;window.open('http://www.facebook.com/sharer.php?u='+src,'sharer','toolbar=0,status=0,width=626,height=436');
	return false;
}

function fbs_click_home() {
	u=location.href;
	t=document.title;window.open('http://www.facebook.com/sharer.php?u=www.pixnation.com','sharer','toolbar=0,status=0,width=626,height=436');
	return false;
}

function mouseover_hero(id,path) {
	var len=4;
	if (!path) {
		path="http://www.pixnation.com/images/backgrounds/";
	}
	for(i=0;i<len;i++) {
		if (id==i) {
			document.getElementById("image"+i).style.background='url('+path+'hero_tab_2.jpg)';
			//document.getElementById("hero_text"+i).style.display='block';
			Effect.BlindDown("hero_text"+i);
		} else {
			document.getElementById("image"+i).style.background='url('+path+'hero_tab_1.jpg)';
			document.getElementById("hero_text"+i).style.display='none';
			/*if(document.getElementById("hero_text"+i).style.display!='none') {
				Effect.SlideUp("hero_text"+i);
			}*/
		}
	}
}

function change_week(w_vis,w_hid) {
	document.getElementById(w_hid).style.display='none';
	document.getElementById(w_vis).style.display='block';
}