﻿if (window.location != window.parent.location) {

	if (window.name.indexOf("fb_") != -1 || window.name.indexOf("app_runner_") != -1) {
		//NOTE: this will lose wherever they were going, so needs to be fixed at some point
	    //window.location = "/?fbtheme=1";

	    if (window.location.href.indexOf("?") == -1) {
	        window.location = window.location.href + "?fbtheme=1";
	    } else {
	        window.location = window.location.href + "&fbtheme=1";
	    }
	}
}

