var flashvars = {};
flashvars.pageSamp = "";
if (swfobject.getQueryParamValue("toLoad")) { flashvars.toLoad= swfobject.getQueryParamValue("toLoad");}
if (swfobject.getQueryParamValue("POV")) { flashvars.POV= swfobject.getQueryParamValue("POV");}
var params = {};
params.wmode = "transparent";
params.loop = "false";
params.scale = "noscale";
params.bgcolor = "#ffffff";
params.allowfullscreen = "true";
params.allowscriptaccess = "sameDomain";
var attributes = {};
attributes.id = "flashPage";
swfobject.embedSWF("/uploadedFiles/Pets_Center/Brand_Pages/01_NES_11627_PurinaP6_N_FBP_720x1075_FlashPage_US_ENG_01.swf", "seoContent", "720", "1075", "8.0.0", false, flashvars, params, attributes);



/*function AddToFavorites(){
	var obj = document.getElementById("bmLink");
	fireEvent(obj,'click');
	title = "Purina Pet Products";
	url = "http://www.walmart.com/purina";
	window.external.AddFavorite( url, title);
	//alert("Call Fire elemtn");
}

function doAddToFavorites(){
	
	title = "Purina Pet Products";
	url = "http://www.walmart.com/purina";
	
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) { // Opera 7+
			return false; // do nothing - the rel="sidebar" should do the trick
		} else { // for Safari, Konq etc - browsers who do not support bookmarking scripts (that i could find anyway)
			 alert('Unfortunately, this browser does not support the requested action,'
			 + ' please bookmark this page manually.');
		}
}*/


$(document).ready(function(){
	// add a "rel" attrib if Opera 7+
	if(window.opera) {
		if ($("a.jqbookmark").attr("rel") != ""){ // don't overwrite the rel attrib if already set
			$("a.jqbookmark").attr("rel","sidebar");
		}
	}

	$("a.jqbookmark").click(function(event){
		event.preventDefault(); // prevent the anchor tag from sending the user off to the link
		title = "Purina Pet Products";
		url = "http://www.walmart.com/purina";

		if (window.sidebar) { // Mozilla Firefox Bookmark
			window.sidebar.addPanel(title, url,"");
			//alert("FF ADD FAV");
		} else if( window.external ) { // IE Favorite
			window.external.AddToFavoritesBar( url, title);
			//alert("ID ADD FA  " + title + " " + url);
		} else if(window.opera) { // Opera 7+
			//alert("Opera ADD FAV");
			return false; // do nothing - the rel="sidebar" should do the trick
		} else { // for Safari, Konq etc - browsers who do not support bookmarking scripts (that i could find anyway)
			 alert('Unfortunately, this browser does not support the requested action,'
			 + ' please bookmark this page manually.');
		}

	});
});

/*function fireEvent(element,event){
    if (document.createEventObject){
        // dispatch for IE
        var evt = document.createEventObject();
        return element.fireEvent('on'+event,evt)
    }
    else{
        // dispatch for firefox + others
        var evt = document.createEvent("HTMLEvents");
        evt.initEvent(event, true, true ); // event type,bubbling,cancelable
        return !element.dispatchEvent(evt);
    }
	//alert("FIRE ALERT FNC CALLED");
}*/

