/*************************
  Carlos Charles
  ************************
  Copyright (c) 2005-2010 Carlos Charles
  v 2.0 originally written by CARLOS CHARLES
  ********************************************
  http://www.carloscharles.com/
**********************************************/

// Menu Top
function menu_top() {
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="1140" height="30">');
document.write('<param name="movie" value="menu-top.swf">');
document.write('<param name="quality" value="high">');
document.write('<param name="wmode" value="transparent" />');
document.write('<embed src="menu-top.swf" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1140" height="30"></embed></object>');
}

// Menu Bottom
function menu_bottom() {
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="1140" height="30">');
document.write('<param name="movie" value="menu-bottom.swf">');
document.write('<param name="quality" value="high">');
document.write('<param name="wmode" value="transparent" />');
document.write('<embed src="menu-bottom.swf" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1140" height="30"></embed></object>');
}

// Home Page
function home_page() {
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100%" height="100%">');
document.write('<param name="movie" value="lacasadeluismiguel-20100725.swf" />');
document.write('<param name="allowfullscreen" value="true" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="wmode" value="transparent" />');
document.write('<embed src="lacasadeluismiguel-20100725.swf" allowfullscreen="true" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100%" height="100%"></embed></object>');
}

// New Album
function new_album() {
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="500" height="100">');
document.write('<param name="movie" value="new-album.swf">');
document.write('<param name="quality" value="high">');
document.write('<param name="wmode" value="transparent" />');
document.write('<embed src="new-album.swf" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="500" height="100"></embed></object>');
}

// Tour Banner
function tour_banner() {
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="450" height="50">');
document.write('<param name="movie" value="tour-main.swf">');
document.write('<param name="quality" value="high">');
document.write('<param name="wmode" value="transparent" />');
document.write('<embed src="tour-main.swf" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="450" height="50"></embed></object>');
}

// Fader hover
$(document).ready(function() {
    $(".thumbs img").fadeTo("normal", 1.0); // This sets the opacity of the thumbs to fade down to 60% when the page loads
    $(".thumbs img").hover(function() {
        $(this).fadeTo("normal", 0.7); // This should set the opacity to 100% on hover
    },function() {
    $(this).fadeTo("normal", 1.0); // This should set the opacity back to 60% on mouseout
    });
});

// Input fader hover
$(document).ready(function() {
    $("input").fadeTo("normal", 1.0); // This sets the opacity of the thumb to fade down to 60% when the page loads
    $("input").hover(function() {
        $(this).fadeTo("normal", 0.7); // This should set the opacity to 100% on hover
    },function() {
    $(this).fadeTo("normal", 1.0); // This should set the opacity back to 60% on mouseout
    });
});

// Open popup
function popupWindow(url) {
 var width  = 900;
 var height = 500;
 var left   = (screen.width  - width)/2;
 var top    = (screen.height - height)/2;
 var params = 'width='+width+', height='+height;
 params += ', top='+top+', left='+left;
 params += ', directories=no';
 params += ', location=no';
 params += ', menubar=no';
 params += ', resizable=no';
 params += ', scrollbars=no';
 params += ', status=no';
 params += ', toolbar=no';
 newwin=window.open(url,'windowname5', params);
 if (window.focus) {newwin.focus()}
 return false;
}
