//new window - opens a new window or some shit

$(function(){
    $('a.new-window').click(function(){
        window.open(this.href);
        return false;
    });
});


// swap image

	$.swapImage(".swapImage");
	$.swapImage(".swapImageClick", true, true, "click");
	$.swapImage(".swapImageDoubleClick", true, true, "dblclick");
	$.swapImage(".swapImageSingleClick", true, false, "click");
	$.swapImage(".swapImageDisjoint");







//Misty Menu

    


$(document).ready(function () {
$("ul.menu_body li:even").addClass("alt");
$('img#menu_head').click(function () {
$('ul.menu_body').slideToggle('medium');
});

$('ul.menu_body li a').mouseover(function () {
$(this).animate({ fontSize: "12px", paddingLeft: "10px" }, 50 );

});

$('ul.menu_body li a').mouseout(function () {
$(this).animate({ fontSize: "12px", paddingLeft: "10px" }, 50 );
});


});



$(document).ready(function(){
				//Examples of how to assign the ColorBox event to elements
				$(".copylink").colorbox({width:"80%", height:"80%", iframe:true});
				
				//Example of preserving a JavaScript event for inline calls.
				$("#click").click(function(){ 
					$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
					return false;
				});
			});

// Some Weird Fucntion... 
function selectTag(showContent,selfObj){
	//
	var tag = document.getElementById("tags").getElementsByTagName("li");
	var taglength = tag.length;
	for(i=0; i<taglength; i++){
		tag[i].className = "";
	}
	selfObj.parentNode.className = "selectTag";
	//
	for(i=0; j=document.getElementById("tagContent"+i); i++){
		j.style.display = "none";
	}
	document.getElementById(showContent).style.display = "block";
	
	
}

var pagename="hero_en_talk";
function setid(){
//  document.getElementById('fromUrl').value=fromurl;
//  document.getElementById('id').value=id;
//  document.getElementById('location').value=document.location;
//  document.getElementById('pagename').value=pagename;
//  
}


