var soundWindow = null;
function clickSound() {
    if (soundWindow == null) {
        soundWindow = window.open("lbb_SoundPlayer.aspx", "soundWindow", "locationbar=false,menubar=false,name=soundWindow,outerWidth=300,innerWidth=300,outerHeight=300,innerHeight=300,pageXOffset=900,pageYOffset=100,personalbar=false,scrollbars=false,statusbar=false,toolbar=false");
        soundWindow.name = "soundWindow";
        soundWindow.id = "soundWindow";
        soundWindow.focus();
    } else {
        soundWindow.close();
        soundWindow = null;
    }
}

function calculateBgX(oElement) {
	return document.body.scrollLeft + getOffsetLeft(oElement);
}

function calculateBgY(oElement) {
	return document.body.scrollTop - getOffsetTop(oElement);
}

function getOffsetTop(oElement) {
	var iResult= oElement.offsetTop;
	while (oElement.offsetParent) {
		oElement = oElement.offsetParent;
		iResult += oElement.offsetTop;
	}
	return iResult;
}

function getOffsetLeft(oElement) {
	var iResult= oElement.offsetLeft;
	while (oElement.offsetParent) {
		oElement = oElement.offsetParent;
		iResult = oElement.offsetLeft;
	}
	return iResult;
}



function set(imgName){
    document.images[imgName].src = buCloseOverGif; /*"img/bu_close_over.gif";*/
}
		
function unset(imgName){
    document.images[imgName].src = buCloseGif;  /*"img/bu_close.gif";*/
}




/** he following modified version of "Add to Favorites" javascript code works across 	*/
/** IE, Mozilla Firefox and Opera Browsers. Template Tags for Blogger, Movable Type and */
/** Wordpress platform are commented. 													*/
/** http://labnol.blogspot.com/2006/01/add-to-favorites-ie-bookmark-firefox.html			*/
function CreateBookmarkLink() {

 title = "STYLE-BIPA"; 
  // Blogger - Replace with <$BlogItemTitle$> 
  // MovableType - Replace with <$MTEntryTitle$>

 url = "http://www.style.bipa.at";
  // Blogger - Replace with <$BlogItemPermalinkURL$> 
  // MovableType - Replace with <$MTEntryPermalink$>
  // WordPress - <?php bloginfo('url'); ?>

	if (window.sidebar) { // Mozilla Firefox Bookmark
		window.sidebar.addPanel(title, url,"");
	} 
	else if( window.external ) { // IE Favorite
		window.external.AddFavorite( url, title); 
	}
	else if(window.opera && window.print) { // Opera Hotlist
		return true; 
	}
 }


