try {

jQuery.noConflict();
jQuery(document).ready(function() {	
	jQuery('#subscribebox').colorbox({iframe:true, innerWidth:425, innerHeight:360});
	jQuery('#unsubscribebox').colorbox({iframe:true, innerWidth:425, innerHeight:220});
});

} catch(err) {

}


function searchboxclick(){
	if (document.searchform.searchfield.value == "search") {
		document.searchform.searchfield.value = "";
	} 
}
		
function searchboxblur(){
 if (document.searchform.searchfield.value == "") {
		document.searchform.searchfield.value = "search";
	}
}
		
		
		
function getFlashMovieObject(movieName)
{
  if (window.document[movieName]) 
  {
      return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  }
}

function PlayFlashMovie()
{
	var flashMovie=getFlashMovieObject("portfolioflash");
	flashMovie.GotoFrame(5);
	flashMovie.Play();
	//embed.nativeProperty.anotherNativeMethod();
}

var faway = {
	        input:"",
	        clear:setTimeout('faway.clear_input()',2000),
	        load: function(link) {
	                window.document.onkeyup = function(e) {
	                        faway.input+= e ? e.keyCode : event.keyCode         
	                        if (faway.input == "3838404037393739666513") {
	                                faway.code(link)
	                                clearTimeout(faway.clear)
	                                }
	                        clearTimeout(faway.clear)
	                        faway.clear = setTimeout("faway.clear_input()",2000)
	                        }
	        },
	        code: function(link) { window.location=link},
	        clear_input: function() {
	                faway.input="";
	                clearTimeout(faway.clear);
	        }
	}

	faway.code = function(){

		var chooseit =Math.round(Math.random()*1);
				
		if (chooseit == 0) {
		document.getElementById('konply').innerHTML = '<embed src="scripts/AsOne design_breath of fresh air_32 sec.mp3" autostart="true" type="audio/mpeg" height="35" width="200" />';
		} else {
		document.getElementById('konply').innerHTML = '<embed src="scripts/AsOne design_good luck.mp3" autostart="true" type="audio/mpeg" height="35" width="200" />';	
		}
		
	}

	faway.load();

